KSQL_TRACE(3) Library Functions Manual KSQL_TRACE(3)

NAME

ksql_traceenable SQLite logging

LIBRARY

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)
April 21, 2018 OpenBSD 6.2