feat: add sqlite support to starmelon interpreter
This commit is contained in:
parent
e90a0b62a6
commit
3cf23637d5
7 changed files with 566 additions and 24 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue