Skip to content

Commit 4d3322f

Browse files
committed
Add sqlite implementation
Signed-off-by: James Rhodes <[email protected]>
1 parent 2cc44b2 commit 4d3322f

File tree

14 files changed

+1280
-173
lines changed

14 files changed

+1280
-173
lines changed

Cargo.lock

Lines changed: 219 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ tedge_config_macros-impl = { path = "crates/common/tedge_config_macros/impl" }
5757
tedge_config_manager = { path = "crates/extensions/tedge_config_manager" }
5858
tedge_downloader_ext = { path = "crates/extensions/tedge_downloader_ext" }
5959
tedge_file_system_ext = { path = "crates/extensions/tedge_file_system_ext" }
60-
tedge_flows = { path = "crates/extensions/tedge_flows" }
60+
tedge_flows = { path = "crates/extensions/tedge_flows", default-features = false }
6161
tedge_health_ext = { path = "crates/extensions/tedge_health_ext" }
6262
tedge_http_ext = { path = "crates/extensions/tedge_http_ext" }
6363
tedge_log_manager = { path = "crates/extensions/tedge_log_manager" }
@@ -95,6 +95,7 @@ base64 = "0.22"
9595
bytes = "1.4"
9696
camino = "1.1"
9797
cap = "0.1"
98+
cfg-if = "1.0"
9899
clap = { version = "4.5", features = [
99100
"cargo",
100101
"derive",
@@ -186,6 +187,7 @@ serde_json = "1.0"
186187
sha1 = "0.10"
187188
sha256 = "1.1"
188189
shell-words = "1.1"
190+
sqlx = { version = "0.8", default-features = false }
189191
strum = "0.24"
190192
strum_macros = "0.24"
191193
syn = { version = "2", features = ["full", "extra-traits"] }

crates/core/tedge/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ tedge-watchdog = { workspace = true }
5555
tedge-write = { workspace = true }
5656
tedge_api = { workspace = true }
5757
tedge_config = { workspace = true }
58-
tedge_flows = { workspace = true, optional = true }
58+
tedge_flows = { workspace = true, optional = true, default-features = false }
5959
tedge_utils = { workspace = true }
6060
thiserror = { workspace = true }
6161
time = { workspace = true }
@@ -85,11 +85,13 @@ x509-parser = { workspace = true }
8585

8686

8787
[features]
88-
default = ["aws", "azure", "c8y", "tedge-flows"]
88+
default = ["aws", "azure", "c8y", "tedge-flows-fjall"]
8989
aws = ["tedge-mapper/aws"]
9090
azure = ["tedge-mapper/azure"]
9191
c8y = ["tedge-mapper/c8y"]
9292
tedge-flows = ["dep:tedge_flows", "tedge-mapper/tedge-flows"]
93+
tedge-flows-fjall = ["tedge-flows", "tedge_flows/fjall-db"]
94+
tedge-flows-sqlite = ["tedge-flows", "tedge_flows/sqlite-db"]
9395
integration-test = []
9496

9597

0 commit comments

Comments
 (0)