feat: add sqlite support to starmelon interpreter

This commit is contained in:
YetAnotherMinion 2022-01-07 02:27:33 +00:00 committed by nobody
commit 3cf23637d5
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
7 changed files with 566 additions and 24 deletions

View file

@ -37,3 +37,11 @@ rusty_v8 = "0.32"
futures = "0.3.15"
serde_v8 = "0.15"
# Required to add sql query support to interpreter. Because deno expects sync
# ops to be synchronous, we have to use a second async executor to run the sqlx
# functions. I read the code for oneshot
# (https://github.com/faern/oneshot/commit/9aa237f185e1b65d61bf92c20350cf7bee0aa88b)
# and it looks reasonable.
sqlx = { version = "0.5", features = [ "sqlite", "macros", "runtime-tokio-rustls", "chrono", "json", "uuid" ] }
oneshot = "0.1.3"