kvite/raw

Here be dragons!

This modules contains functions for raw operations on a sqlight.Connection used by Kvite. The table must follow the Kvite schema of having a key TEXT and a value BLOB column.

These functions are used internally by Kvite and are not intended for direct use by applications. Only use them as an escape hatch when you know what you’re doing.

Values

pub fn apply_pragmas(
  connection conn: sqlight.Connection,
) -> Result(Nil, sqlight.Error)
pub fn begin_transaction(
  connection conn: sqlight.Connection,
) -> Result(Nil, sqlight.Error)
pub fn cancel_transaction(
  connection conn: sqlight.Connection,
) -> Result(Nil, sqlight.Error)
pub fn commit_transaction(
  connection conn: sqlight.Connection,
) -> Result(Nil, sqlight.Error)
pub fn create_table(
  connection conn: sqlight.Connection,
  table_name table: String,
) -> Result(Nil, sqlight.Error)
pub fn del(
  connection conn: sqlight.Connection,
  table_name table: String,
  key key: String,
) -> Result(Nil, sqlight.Error)
pub fn get(
  connection conn: sqlight.Connection,
  table_name table: String,
  key key: String,
) -> Result(option.Option(BitArray), sqlight.Error)
pub fn keys(
  connection conn: sqlight.Connection,
  table_name table: String,
) -> Result(List(String), sqlight.Error)
pub fn set(
  connection conn: sqlight.Connection,
  table_name table: String,
  key key: String,
  value value: BitArray,
) -> Result(Nil, sqlight.Error)
pub fn truncate(
  connection conn: sqlight.Connection,
  table_name table: String,
) -> Result(Nil, sqlight.Error)
Search Document