KSQL_BIND_DOUBLE(3)

NAME
ksql_bind_blob, ksql_bind_double, ksql_bind_int, ksql_bind_str, ksql_bind_zblob - bind values to a prepared statement

LIBRARY
ksql

SYNOPSIS
#include <ksql.h>
enum ksqlc
ksql_stmt_blob(struct ksql_stmt *stmt, size_t col, const void *val, size_t valsz);
enum ksqlc
ksql_stmt_double(struct ksql_stmt *stmt, size_t col, double val);
enum ksqlc
ksql_stmt_int(struct ksql_stmt *stmt, size_t col, int64_t val);
enum ksqlc
ksql_stmt_str(struct ksql_stmt *stmt, size_t col, const char *val);
enum ksqlc
ksql_stmt_zblob(struct ksql_stmt *stmt, size_t col, size_t valsz);

DESCRIPTION
The ksql_bind_blob, ksql_bind_bytes, ksql_bind_double, ksql_bind_int, ksql_bind_str, and ksql_bind_zblob functions bind data to a statement prepared with ksql_stmt_alloc(3). They all accept the relevant column to bind, which starts at zero.

Note: in SQLite, binding occurs starting at column one. In these functions, for consistency with ksql_stmt_double(3) and friends, it starts at zero.

RETURN VALUES
These functions return KSQL_DB if the underlying bind operation fails or KSQL_OK on success.

SEE ALSO
sqlite3_bind_blob(3)