feat(export): honor exclude-primary-keys in SQL script exports
This commit is contained in:
16 files changed
+464
-68
No files matched your search
@@ -109,6 +109,8 @@ async fn live_clickhouse_query_result_export_xlsx_streams_random_order_query_onc
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let done_seen = AtomicBool::new(false);
|
||||
let result = export_query_result_core(&state, &request, None, |progress| {
|
||||
|
||||
@@ -484,6 +484,8 @@ async fn live_mysql_query_result_export_xlsx_streams_single_query_without_duplic
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let done_seen = AtomicBool::new(false);
|
||||
let result = export_query_result_core(&state, &request, None, |progress| {
|
||||
@@ -575,6 +577,8 @@ async fn live_mysql_csv_temporal_export_round_trip_preserves_dbx_force_text_valu
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
export_query_result_core(&state, &request, None, |_| {}).await.expect("export fixture");
|
||||
|
||||
@@ -690,6 +694,8 @@ async fn live_mysql_xlsx_export_can_outlive_query_timeout_while_rows_keep_arrivi
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let rows_exported = AtomicU64::new(0);
|
||||
let done_seen = AtomicBool::new(false);
|
||||
|
||||
@@ -156,6 +156,8 @@ async fn live_postgres_query_result_export_uses_single_streamed_query() {
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let done_seen = AtomicBool::new(false);
|
||||
let result = export_query_result_core(&state, &request, None, |progress| {
|
||||
@@ -240,6 +242,8 @@ async fn live_postgres_query_result_xlsx_preserves_temporal_cell_types() {
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
|
||||
export_query_result_core(&state, &request, None, |_| {}).await.expect("export temporal XLSX");
|
||||
@@ -313,6 +317,8 @@ async fn live_postgres_numeric_xlsx_ignores_fractional_trailing_zeros() {
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: true,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
|
||||
export_query_result_core(&state, &request, None, |_| {}).await.expect("export numeric XLSX");
|
||||
@@ -391,6 +397,8 @@ async fn live_postgres_truncated_batch_result_export_replays_safe_temp_setup() {
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let csv_rows = AtomicU64::new(0);
|
||||
export_query_result_core(&state, &request, None, |progress| {
|
||||
@@ -471,6 +479,8 @@ async fn live_postgres_xlsx_export_can_outlive_query_timeout_while_rows_keep_arr
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let rows_exported = AtomicU64::new(0);
|
||||
let done_seen = AtomicBool::new(false);
|
||||
@@ -542,6 +552,8 @@ async fn live_postgres_stream_still_times_out_without_progress_and_recovers() {
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let started_at = Instant::now();
|
||||
let result = export_query_result_core(&state, &request, None, |_| {}).await;
|
||||
|
||||
@@ -1218,6 +1218,8 @@ async fn live_sqlserver_query_result_export_streams_cte_query_to_csv() {
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let done_seen = AtomicBool::new(false);
|
||||
let result = export_query_result_core(&state, &request, None, |progress| {
|
||||
|
||||
@@ -135,6 +135,8 @@ async fn live_sqlserver_xlsx_export_can_outlive_query_timeout_while_rows_keep_ar
|
||||
auto_filter: None,
|
||||
identifier_quote: None,
|
||||
numeric_column_right_align: false,
|
||||
exclude_primary_keys: false,
|
||||
primary_keys: Vec::new(),
|
||||
};
|
||||
let rows_exported = AtomicU64::new(0);
|
||||
let done_seen = AtomicBool::new(false);
|
||||
|
||||
Reference in new issue
Block a user