README.md
# based_sqlite
[](https://hex.pm/packages/based_sqlite)
[](https://hexdocs.pm/based_sqlite/)
## WIP
This package should be used with [`based`](https://github.com/stndrs/based)
```sh
gleam add based_sqlite
```
```gleam
import based
import based_sqlite
import gleam/option.{None}
const sql = "DELETE FROM users WHERE id=$1;"
pub fn main() {
use db <- based.register(based_sqlite.with_connection, ":memory:")
based.new_query(sql)
|> based.with_args([based.int(1)])
|> based.exec(db)
}
```
Further documentation can be found at <https://hexdocs.pm/based_sqlite>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```