diff --git a/Cargo.lock b/Cargo.lock index b303204..4271a69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -584,18 +584,6 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" -[[package]] -name = "flume" -version = "0.10.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577" -dependencies = [ - "futures-core", - "futures-sink", - "pin-project", - "spin 0.9.8", -] - [[package]] name = "fnv" version = "1.0.7" @@ -1206,17 +1194,6 @@ dependencies = [ "libc", ] -[[package]] -name = "libsqlite3-sys" -version = "0.24.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "898745e570c7d0453cc1fbc4a701eb6c662ed54e8fec8b7d14be137ebeeb9d14" -dependencies = [ - "cc", - "pkg-config", - "vcpkg", -] - [[package]] name = "linux-raw-sys" version = "0.4.14" @@ -2218,9 +2195,6 @@ name = "spin" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" -dependencies = [ - "lock_api", -] [[package]] name = "sqlformat" @@ -2260,10 +2234,8 @@ dependencies = [ "dotenvy", "either", "event-listener", - "flume", "futures-channel", "futures-core", - "futures-executor", "futures-intrusive", "futures-util", "hashlink", @@ -2273,7 +2245,6 @@ dependencies = [ "indexmap 1.9.3", "itoa", "libc", - "libsqlite3-sys", "log", "md-5", "memchr", diff --git a/Cargo.toml b/Cargo.toml index 7c45a90..3b5b242 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ tokio = { version = "^1", features = ["macros", "rt-multi-thread"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } sqlx = { version = "0.6", features = [ - "sqlite", "postgres", "runtime-tokio-rustls", "time" diff --git a/src/sql.rs b/src/sql.rs index c8abe46..99c3f12 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -148,7 +148,7 @@ SELECT p.commit_time, p.committer, dpkg.dpkg_version dpkg_version, - group_concat(DISTINCT dpkg.reponame) dpkg_availrepos, + array_to_string(array_agg(DISTINCT dpkg.reponame), ',') dpkg_availrepos, coalesce( CASE WHEN dpkg.dpkg_version IS NOT null THEN (CASE WHEN