feat(iotdb): add Apache IoTDB support
This commit is contained in:
1 parent
2b2d789c2c
commit
a3e45cd721
21 files changed
+201
-3
No files matched your search
@@ -253,6 +253,7 @@ pub enum DatabaseType {
|
||||
Sundb,
|
||||
Tdengine,
|
||||
Xugu,
|
||||
Iotdb,
|
||||
#[serde(rename = "iris")]
|
||||
Iris,
|
||||
Jdbc,
|
||||
@@ -681,6 +682,14 @@ impl ConnectionConfig {
|
||||
DatabaseType::Sundb => format!("sundb://{host}:{port}{db_part}"),
|
||||
DatabaseType::Tdengine => format!("tdengine://{host}:{port}{db_part}"),
|
||||
DatabaseType::Xugu => format!("xugu://{host}:{port}{db_part}"),
|
||||
DatabaseType::Iotdb => {
|
||||
let base = format!("iotdb://{host}:{port}{db_part}");
|
||||
if params.is_empty() {
|
||||
base
|
||||
} else {
|
||||
format!("{base}?{params}")
|
||||
}
|
||||
}
|
||||
DatabaseType::Iris => format!("iris://{host}:{port}{db_part}"),
|
||||
DatabaseType::Jdbc => "jdbc:<redacted>".to_string(),
|
||||
}
|
||||
@@ -853,6 +862,14 @@ impl ConnectionConfig {
|
||||
DatabaseType::Xugu => {
|
||||
format!("xugu://{}:{}@{host}:{port}{db_part}", username, password)
|
||||
}
|
||||
DatabaseType::Iotdb => {
|
||||
let base = format!("iotdb://{}:{}@{host}:{port}{db_part}", username, password);
|
||||
if params.is_empty() {
|
||||
base
|
||||
} else {
|
||||
format!("{base}?{params}")
|
||||
}
|
||||
}
|
||||
DatabaseType::Iris => {
|
||||
format!("iris://{}:{}@{host}:{port}{db_part}", username, password)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user