Previous: Usage—DBI Connections, Up: CL-DBI [Contents][Index]
CL-DBI provides dbi:*sql-execution-hooks*
, a hook to run for each SQL
execution, particularly used for logging.
The hook function takes these 4 values:
The row count and its execution time can be null, if those values are not available for the driver for some reason.
dbi:simple-sql-logger
is also provided for printing those values directly to
standard-output. It can be enabled as so:
(push #'dbi:simple-sql-logger dbi:*sql-execution-hooks*)
Previous: Usage—DBI Connections, Up: CL-DBI [Contents][Index]