Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
324 changes: 321 additions & 3 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ serde_json = "1.0"
serde_yaml = "0.9"
skardi-engine = { path = "crates/engine" }
sqlparser = "0.55.0"
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres"] }
substrait = "0.27"
tempfile = "3.23.0"
tokio = { version = "1.44.2", features = ["macros", "rt", "sync"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use serde::Deserialize;
use source::lance::knn_table_function::register_lance_knn_udtf;
use source::providers::{
iceberg::register_iceberg_table, lance::register_lance_table, mongo::register_mongo_tables,
mysql::register_mysql_tables, postgres::register_postgres_tables,
mysql::register_mysql_tables, sqlx::postgres::register_postgres_tables,
};
use std::collections::HashMap;
use std::fmt;
Expand Down
4 changes: 2 additions & 2 deletions crates/server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,8 @@ async fn register_data_source(
source.options
);

// Register PostgreSQL table using the providers module
source::providers::postgres::register_postgres_tables(
// Register PostgreSQL table using the sqlx-based provider
source::providers::sqlx::postgres::register_postgres_tables(
session_ctx,
&source.name,
connection_string,
Expand Down
1 change: 1 addition & 0 deletions crates/source/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mysql_async = "0.36"
percent-encoding = "2.3"
redis = { version = "1.0.0-rc.2", default-features = false, features = ["cluster"] }
secrecy = "0.10"
sqlx = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sqlparser = "0.53"
Expand Down
2 changes: 1 addition & 1 deletion crates/source/src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pub mod iceberg;
pub mod lance;
pub mod mongo;
pub mod mysql;
pub mod postgres;
pub mod sqlx;
Loading
Loading