Add postgres code

- Set is currently working
- Other methods to test

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-07-30 16:31:40 +02:00
parent 0ad4cc2fb4
commit 0a8e2040ef
6 changed files with 1462 additions and 6 deletions

View File

@@ -15,11 +15,20 @@ tst = { path = "../tst" }
heromodels-derive = { path = "../heromodels-derive" }
heromodels_core = { path = "../heromodels_core" }
rhailib_derive = { package = "derive", path = "../../rhailib/src/derive" }
rhai = { version = "1.21.0", features = ["std", "sync", "decimal", "internals"] } # Added "decimal" feature, sync for Arc<Mutex<>>
rhai = { version = "1.21.0", features = [
"std",
"sync",
"decimal",
"internals",
] } # Added "decimal" feature, sync for Arc<Mutex<>>
rhai_client_macros = { path = "../rhai_client_macros" }
strum = "0.26"
strum_macros = "0.26"
uuid = { version = "1.17.0", features = ["v4"] }
postgres = { version = "0.19.10", features = ["with-serde_json-1"] }
jsonb = "0.5.2"
r2d2 = "0.8.10"
r2d2_postgres = "0.18.2"
[features]
default = []
@@ -46,4 +55,4 @@ path = "examples/flow_example.rs"
[[example]]
name = "biz_rhai"
path = "examples/biz_rhai/example.rs"
required-features = ["rhai"]
required-features = ["rhai"]