Skip to content

Commit e0142da

Browse files
committed
Add sqlite implementation
Signed-off-by: James Rhodes <[email protected]>
1 parent 895ff2f commit e0142da

File tree

10 files changed

+712
-32
lines changed

10 files changed

+712
-32
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
@@ -55,7 +55,7 @@ tedge_config_macros-impl = { path = "crates/common/tedge_config_macros/impl" }
5555
tedge_config_manager = { path = "crates/extensions/tedge_config_manager" }
5656
tedge_downloader_ext = { path = "crates/extensions/tedge_downloader_ext" }
5757
tedge_file_system_ext = { path = "crates/extensions/tedge_file_system_ext" }
58-
tedge_flows = { path = "crates/extensions/tedge_flows" }
58+
tedge_flows = { path = "crates/extensions/tedge_flows", default-features = false }
5959
tedge_health_ext = { path = "crates/extensions/tedge_health_ext" }
6060
tedge_http_ext = { path = "crates/extensions/tedge_http_ext" }
6161
tedge_log_manager = { path = "crates/extensions/tedge_log_manager" }
@@ -93,6 +93,7 @@ base64 = "0.22"
9393
bytes = "1.4"
9494
camino = "1.1"
9595
cap = "0.1"
96+
cfg-if = "1.0"
9697
clap = { version = "4.5", features = [
9798
"cargo",
9899
"derive",
@@ -184,6 +185,7 @@ serde_json = "1.0"
184185
sha1 = "0.10"
185186
sha256 = "1.1"
186187
shell-words = "1.1"
188+
sqlx = { version = "0.8", default-features = false }
187189
strum = "0.24"
188190
strum_macros = "0.24"
189191
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
@@ -54,7 +54,7 @@ tedge-watchdog = { workspace = true }
5454
tedge-write = { workspace = true }
5555
tedge_api = { workspace = true }
5656
tedge_config = { workspace = true }
57-
tedge_flows = { workspace = true, optional = true }
57+
tedge_flows = { workspace = true, optional = true, default-features = false }
5858
tedge_utils = { workspace = true }
5959
thiserror = { workspace = true }
6060
time = { workspace = true }
@@ -84,11 +84,13 @@ x509-parser = { workspace = true }
8484

8585

8686
[features]
87-
default = ["aws", "azure", "c8y", "tedge-flows"]
87+
default = ["aws", "azure", "c8y", "tedge-flows-fjall"]
8888
aws = ["tedge-mapper/aws"]
8989
azure = ["tedge-mapper/azure"]
9090
c8y = ["tedge-mapper/c8y"]
9191
tedge-flows = ["dep:tedge_flows", "tedge-mapper/tedge-flows"]
92+
tedge-flows-fjall = ["tedge-flows", "tedge_flows/fjall-db"]
93+
tedge-flows-sqlite = ["tedge-flows", "tedge_flows/sqlite-db"]
9294
integration-test = []
9395

9496

crates/core/tedge/src/cli/flows/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl TestCommand {
5757
timestamp: DateTime,
5858
) {
5959
processor
60-
.on_message(MessageSource::MQTT, timestamp, message)
60+
.on_message(MessageSource::Mqtt, timestamp, message)
6161
.await
6262
.into_iter()
6363
.map(|(_, v)| v)

0 commit comments

Comments
 (0)