gloo/adapter/sqlite

SQLite adapter. Wraps sqlight.

use r <- result.try(sqlite.start(sqlite.memory()))
use r <- result.try(sqlite.start(sqlite.file("mydb.sqlite3")))
// ... use r ...
repo.close(r)

Types

pub type Config {
  Config(path: String)
}

Constructors

  • Config(path: String)

Values

pub fn file(path: String) -> Config
pub fn memory() -> Config
pub fn start(config: Config) -> Result(repo.Repo, String)

Open a SQLite connection and return a Repo. Call repo.close(r) when done.

Search Document