cake/adapter/sqlite

Sqlite adapter which which passes PreparedStatements to the sqlight library for execution.

Functions

pub fn execute_raw_sql(
  query qry: String,
  connection conn: Connection,
) -> Result(Nil, Error)
pub fn run_query(
  query qry: Query,
  decoder dcdr: fn(Dynamic) -> Result(a, List(DecodeError)),
  db_connection db_conn: Connection,
) -> Result(List(a), Error)
pub fn run_write(
  query qry: WriteQuery(a),
  decoder dcdr: fn(Dynamic) -> Result(b, List(DecodeError)),
  db_connection db_conn: Connection,
) -> Result(List(b), Error)
pub fn to_prepared_statement(
  query qry: Query,
) -> PreparedStatement
pub fn with_memory_connection(
  callback_fun: fn(Connection) -> a,
) -> a
pub fn write_query_to_prepared_statement(
  query qry: WriteQuery(a),
) -> PreparedStatement
Search Document