KSQL_TRACE(3)

NAME
ksql_trace - enable SQLite logging

LIBRARY
ksql

SYNOPSIS
#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
enum ksqlc
ksql_trace(struct ksql *sql);

DESCRIPTION
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).

RETURN VALUES
This returns KSQL_ALREADYOPEN if invoked after ksql_open(3) or KSQL_SYSTEM on system error. Otherwise, it returns KSQL_OK.

SEE ALSO
ksql_untrace(3)