feat(dynamodb): support querying, editing, and exporting
This commit is contained in:
73 files changed
+4493
-134
No files matched your search
@@ -1105,6 +1105,12 @@ async fn test_connection_with_info_inner(
|
||||
Err(native_err)
|
||||
}
|
||||
}
|
||||
DatabaseType::DynamoDb => {
|
||||
let client = db::dynamodb_driver::connect(&config, &host, port)?;
|
||||
db::dynamodb_driver::test_connection(&client, connect_timeout)
|
||||
.await
|
||||
.map(|_| "Connection successful".to_string())
|
||||
}
|
||||
DatabaseType::ClickHouse => {
|
||||
let username = if config.username.is_empty() { None } else { Some(config.username.clone()) };
|
||||
let password = if config.password.is_empty() { None } else { Some(config.password.clone()) };
|
||||
@@ -1518,6 +1524,11 @@ pub async fn connect_db(
|
||||
}
|
||||
}
|
||||
}
|
||||
DatabaseType::DynamoDb => {
|
||||
let client = db::dynamodb_driver::connect(&db_config, &host, port)?;
|
||||
db::dynamodb_driver::test_connection(&client, connect_timeout).await?;
|
||||
PoolKind::DynamoDb(client)
|
||||
}
|
||||
DatabaseType::ClickHouse => {
|
||||
let username = if db_config.username.is_empty() { None } else { Some(db_config.username.clone()) };
|
||||
let password = if db_config.password.is_empty() { None } else { Some(db_config.password.clone()) };
|
||||
|
||||
Reference in new issue
Block a user