Skip to content

stndrs/based_sqlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

based_sqlite

Package Version Hex Docs

WIP

This package should be used with based

gleam add based_sqlite
import based
import based_sqlite

const sql = "DELETE FROM users WHERE id=$1;"

pub fn main() {
  use db <- based.register(based_sqlite.adapter(":memory:"))

  based.new_query(sql)
  |> based.with_values([based.int(1)])
  |> based.execute(db)
}

Further documentation can be found at https://hexdocs.pm/based_sqlite.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages