SQLite.PreparedStatement

sqlite3_stmt* wrapper.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bind
void bind(int idx, int v)

sqlite3_bind_XXX wrapper.

bind
void bind(int idx, long v)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(int idx, double v)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(int idx, char[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(int idx, wchar[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(int idx, void* n)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(int idx, void[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
bindAll
void bindAll(T args)

Bind all arguments according to their type, in order.

column
T column(int idx)

Returns the value of a column by its index, as the given D type.

columnCount
int columnCount()

sqlite3_column_count wrapper.

columnName
string columnName(int idx)

Returns the column name by its index, as a D string.

columns
void columns(T args)

Returns the value of all columns, as the given D types.

dataCount
int dataCount()

sqlite3_data_count wrapper.

exec
void exec(T args)

Binds the given arguments and executes the prepared statement, discarding the result.

getArray
T[] getArray()

Returns the value of all columns, as an array of the given D type (string by default).

getAssoc
T[string] getAssoc()

Returns the value of all columns as an associative array, with the column names as the key, and the values with given D type (string by default).

iterate
Iterator iterate(T args)

Binds the given arguments and executes the prepared statement, returning the results as an iterator.

reset
void reset()

Calls sqlite3_reset.

step
bool step()

Return "true" if a row is available, "false" if done.

Structs

Iterator
struct Iterator

Binds the given arguments and executes the prepared statement, returning the results as an iterator.

Meta