spaceship_db/drivers/turso

Types

Turso SQL-over-HTTP configuration.

pub type Config {
  Config(url: String, api_token: String)
}

Constructors

  • Config(url: String, api_token: String)

Values

pub fn config(url: String, api_token: String) -> Config

Create a Turso driver configuration.

The URL may use https://, turso://, or libsql://. The latter two are converted to https:// for the SQL-over-HTTP endpoint.

pub fn driver(
  url: String,
  api_token: String,
) -> driver.AsyncDriver

Create a Turso driver.

url is the database URL and api_token is a Turso database token.

Search Document