You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onnotice : fn //Any NOTICE the db sends will be posted here
52
-
onparameter : fn //Callback with key, value for server params
50
+
types : [], //Array of custom types, see more below
51
+
onnotice : fn //Defaults to console.log
52
+
onparameter : fn //(key, value) when server param change
53
53
debug : fn // Is called with (connection, query, parameters)
54
54
transform : {
55
55
column : fn, // Transforms incoming column names
@@ -428,13 +428,8 @@ This error is thrown if the user has called [`sql.end()`](#sql_end) and performe
428
428
This error is thrown for any queries that were pending when the timeout to [`sql.end({ timeout: X })`](#sql_destroy) was reached.
429
429
430
430
431
-
## NOTICE using `onnotice`
432
-
433
-
nb. You can use [`onnotice`](#onnotice) to listen to any Postgres `NOTICE` sent on connections. But note that this will be called for every singlee connection to the database.
434
-
435
-
436
431
## Thank you
437
432
438
433
A really big thank you to @JAForbes who introduced me to Postgres and still holds my hand navigating all the great opportunities we have.
439
434
440
-
Thanks to @ACXgit for initial tests.
435
+
Thanks to @ACXgit for initial tests and dogfooding.
0 commit comments