gflare/turso

Types

pub type Config =
  config.Config

Values

pub fn batch(
  config: config.Config,
  statements: List(#(String, List(types.Value))),
  mode: types.BatchMode,
) -> promise.Promise(
  Result(List(types.ExecuteResult), error.Error),
)
pub fn blob(value: BitArray) -> types.Value
pub fn connect(url: String, auth_token: String) -> config.Config
pub fn execute(
  config: config.Config,
  sql: String,
  args: List(types.Value),
) -> promise.Promise(Result(types.ExecuteResult, error.Error))
pub fn float(value: Float) -> types.Value
pub fn int(value: Int) -> types.Value
pub fn null_value() -> types.Value
pub fn text(value: String) -> types.Value
pub fn transaction(
  config: config.Config,
  statements: List(#(String, List(types.Value))),
) -> promise.Promise(
  Result(List(types.ExecuteResult), error.Error),
)
Search Document