|
NAMEksql_stmt_cstep , ksql_stmt_step
—
get the next row of results from a statement
LIBRARYlibrary “ksql”SYNOPSIS#include <sys/types.h>
#include <stdint.h>
#include <ksql.h>
enum ksqlc
enum ksqlc
DESCRIPTIONTheksql_stmt_step () and
ksql_stmt_cstep () functions query the next row of
results from a statement prepared with
ksql_stmt_alloc(3).
The two functions differ in that ksql_stmt_step ()
fails when a constraint is violated, while
ksql_stmt_cstep () returns
KSQL_CONSTRAINT instead.
These functions handle a locked database (specifically,
RETURN VALUESThese functions return several error conditions:KSQL_NOTOPEN if the database connection has not been
opened; KSQL_DB on database errors, including
constraint violations with ksql_stmt_step (); and
KSQL_MEM on memory allocation failure.
It also returns the following non-error conditions:
SEE ALSOsqlite3_step(3)
Visit the GSP FreeBSD Man Page Interface. |