Files
kumomta/crates/mod-sqlite/Cargo.toml
T
Wez Furlong 2cf3d2387c add sqlite data access
A bit of a big commit because I wanted sqlite queries to run
async and there isn't a sane way to tell in mlua whether a
given context is safe to yield for an await, which meant making
every case where we call into lua be fully async.

This adds a simple but powerful binding to sqlite that performs
its IO in a blocking tokio thread pool, and returns the results
back to lua.

There is no implicit caching of queries, and no implicit connection
pooling.
2023-03-04 18:07:31 -07:00

15 lines
384 B
TOML

[package]
name = "mod-sqlite"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0"
config = {path="../config"}
mlua = {version="0.8", features=["vendored", "lua54", "async", "send", "serialize"]}
serde_json = "1.0"
sqlite = "0.30"
tokio = {version="1.25", features=["rt"]}