Struct stmt

Struct Documentation

struct stmt

the statement wrapper for sqlite.

Public Functions

int bind_null(int idx)

binds null

Parameters:

idx – starts with 1

Returns:

int sqlite err msg

int bind_text(int idx, std::string &str)

binds text

Parameters:
  • idx – starts with 1

  • str – text to bind

Returns:

int sqlite err msg

int bind_blob(int idx, BIN &bin)

binds blob

Parameters:
  • idx – starts with 1

  • bin – binary to bind

Returns:

int sqlite err msg

int bind_double(int idx, double num)

binds double

Parameters:
  • idx – starts with 1

  • num – double to bind

Returns:

int sqlite err msg

int bind_int(int idx, double num)

binds int

Parameters:
  • idx – starts with 1

  • num – int to bind

Returns:

int sqlite err msg

template<int T_COL, typename res>
res colGet(int idx)

get a column

Template Parameters:
  • T_COL – the column type

  • res – the result type

Parameters:

idx – starts with 1

Returns:

res the column data

bool activate(sqlite3 *db)

activates the query

Parameters:

db – Root database

Returns:

true

Returns:

false

stmt()
~stmt()

Public Members

std::string placeHold
sqlite3_stmt *S = nullptr