feat: add InfluxDB support (#980)

This commit is contained in:
John Jin authored and GitHub committed 2026-06-10 14:37:53 +08:00
1 parent c13efc65f8
commit 0bd07ccf46
23 files changed
+470 -7

No files matched your search

+4 -1
View File
@@ -58,7 +58,10 @@ pub fn build_table_data_select_sql(options: TableDataSelectSqlOptions) -> String
let row_id_alias =
if options.include_row_id && database_type == Some(DatabaseType::Oracle) { Some("t") } else { None };
let default_order_alias = if database_type == Some(DatabaseType::Jdbc) { Some("dbx_t") } else { row_id_alias };
let default_order_by = if !options.primary_keys.is_empty() {
let default_order_by = if database_type == Some(DatabaseType::InfluxDb) {
// InfluxQL only allows sorting of timestamp column
Some("time DESC".to_string())
} else if !options.primary_keys.is_empty() {
Some(
options
.primary_keys