ksql_trace
—
enable SQLite logging
library “ksql”
#include
<sys/types.h>
#include
<stdint.h>
#include
<ksql.h>
enum ksqlc
ksql_trace
(
struct
ksql *sql);
This function causes SQLite to emit error and debug messages. Messages are
passed to the error message handler set during
ksql_alloc(3) or
ksql_alloc_child(3). It may be disabled with
ksql_untrace(3).
The
ksql_trace
() function may only be called
prior to
ksql_open(3).
This returns
KSQL_ALREADYOPEN
if invoked
after
ksql_open(3) or
KSQL_SYSTEM
on system error. Otherwise, it
returns
KSQL_OK
.
ksql_untrace(3)