mirror of https://github.com/VinGarcia/ksql.git
parent
22a26aeb18
commit
ecd2ea45aa
|
@ -94,4 +94,8 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err.Error())
|
panic(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Here we are provoking an error, so we can see an error on the log:
|
||||||
|
_ = db.QueryOne(ctx, &alison, "not a valid query", "someFakeParams")
|
||||||
|
// This logs: {"query":"not a valid query","params":["someFakeParams"],"error":"error running query: near \"not\": syntax error"}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue