libsql

Types

pub type Authority {
  Authority(
    host: String,
    port: Option(Int),
    user_info: Option(UserInfo),
  )
}

Constructors

  • Authority(
      host: String,
      port: Option(Int),
      user_info: Option(UserInfo),
    )
pub type Client
pub type Config {
  Config(
    tls: Bool,
    url: String,
    auth_token: Option(String),
    authority: Option(Authority),
  )
}

Constructors

  • Config(
      tls: Bool,
      url: String,
      auth_token: Option(String),
      authority: Option(Authority),
    )
pub type UserInfo {
  UserInfo(username: String, password: Option(String))
}

Constructors

  • UserInfo(username: String, password: Option(String))

Functions

pub fn create_client(config: Config) -> Result(Client, Nil)
pub fn default_config() -> Config

intMode: IntMode,

pub fn execute(
  sql: String,
  with args: List(String),
  on client: Client,
) -> Promise(Result(Dynamic, Nil))
Search Document