fix(gbase): generate GBase 8s table DDL with Informix dialect
This commit is contained in:
1 parent
d430ec9a4a
commit
af32936297
20 files changed
+284
-16
No files matched your search
@@ -10640,6 +10640,7 @@ async function copyAlterColumnSql() {
|
|||||||
|
|
||||||
const options: BuildSingleColumnAlterSqlOptions = {
|
const options: BuildSingleColumnAlterSqlOptions = {
|
||||||
databaseType: props.databaseType,
|
databaseType: props.databaseType,
|
||||||
|
driverProfile: props.connectionId ? connectionStore.getConfig(props.connectionId)?.driver_profile : undefined,
|
||||||
schema: props.tableMeta?.schema,
|
schema: props.tableMeta?.schema,
|
||||||
tableName: props.tableMeta!.tableName,
|
tableName: props.tableMeta!.tableName,
|
||||||
column: draft,
|
column: draft,
|
||||||
|
|||||||
@@ -1623,6 +1623,7 @@ function scheduleSqlPreviewRefresh() {
|
|||||||
function structureChangeOptions(): BuildTableStructureChangeSqlOptions {
|
function structureChangeOptions(): BuildTableStructureChangeSqlOptions {
|
||||||
return {
|
return {
|
||||||
databaseType: databaseType.value,
|
databaseType: databaseType.value,
|
||||||
|
driverProfile: connection.value?.driver_profile,
|
||||||
schema: props.schema,
|
schema: props.schema,
|
||||||
tableName: isCreateMode.value ? newTableName.value.trim() : props.tableName || "",
|
tableName: isCreateMode.value ? newTableName.value.trim() : props.tableName || "",
|
||||||
// Do not let a draft created by an older build submit properties that the
|
// Do not let a draft created by an older build submit properties that the
|
||||||
|
|||||||
@@ -77,6 +77,10 @@ export interface EditableStructureTrigger {
|
|||||||
|
|
||||||
export interface BuildTableStructureChangeSqlOptions {
|
export interface BuildTableStructureChangeSqlOptions {
|
||||||
databaseType?: DatabaseType;
|
databaseType?: DatabaseType;
|
||||||
|
/** Driver profile reported by the connection (e.g. `"gbase8s"`). GBase 8s is
|
||||||
|
* Informix-compatible rather than MySQL-compatible like the rest of the
|
||||||
|
* `Gbase` family, so this disambiguates which dialect the backend generates. */
|
||||||
|
driverProfile?: string | null;
|
||||||
schema?: string;
|
schema?: string;
|
||||||
tableName: string;
|
tableName: string;
|
||||||
columns: EditableStructureColumn[];
|
columns: EditableStructureColumn[];
|
||||||
@@ -118,6 +122,7 @@ export interface SqliteTableStructureChangePreview extends TableStructureChangeS
|
|||||||
|
|
||||||
export interface BuildSingleColumnAlterSqlOptions {
|
export interface BuildSingleColumnAlterSqlOptions {
|
||||||
databaseType?: DatabaseType;
|
databaseType?: DatabaseType;
|
||||||
|
driverProfile?: string | null;
|
||||||
schema?: string;
|
schema?: string;
|
||||||
tableName: string;
|
tableName: string;
|
||||||
column: EditableStructureColumn;
|
column: EditableStructureColumn;
|
||||||
|
|||||||
@@ -2392,6 +2392,7 @@ mod tests {
|
|||||||
let create =
|
let create =
|
||||||
crate::table_structure_sql::build_create_table_sql(crate::table_structure_sql::TableStructureSqlOptions {
|
crate::table_structure_sql::build_create_table_sql(crate::table_structure_sql::TableStructureSqlOptions {
|
||||||
database_type: Some(DatabaseType::Oracle),
|
database_type: Some(DatabaseType::Oracle),
|
||||||
|
driver_profile: None,
|
||||||
schema: Some("APP".to_string()),
|
schema: Some("APP".to_string()),
|
||||||
table_name: "orders_copy".to_string(),
|
table_name: "orders_copy".to_string(),
|
||||||
columns: vec![column("user_id"), column("userName")],
|
columns: vec![column("user_id"), column("userName")],
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ pub fn build_table_structure_change_sql(mut options: TableStructureSqlOptions) -
|
|||||||
/// Callers using this as an introspection signal must corroborate it against
|
/// Callers using this as an introspection signal must corroborate it against
|
||||||
/// what was actually collected rather than trust the flag alone.
|
/// what was actually collected rather than trust the flag alone.
|
||||||
pub(crate) fn supports_comments(database_type: crate::models::connection::DatabaseType) -> bool {
|
pub(crate) fn supports_comments(database_type: crate::models::connection::DatabaseType) -> bool {
|
||||||
dialect::capabilities_for(Some(database_type)).comment
|
dialect::capabilities_for(Some(database_type), None).comment
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Whether this engine's structure editor can generate foreign key DDL — a
|
/// Whether this engine's structure editor can generate foreign key DDL — a
|
||||||
@@ -94,7 +94,7 @@ pub(crate) fn supports_comments(database_type: crate::models::connection::Databa
|
|||||||
/// engine where DDL support and introspection support diverge — callers
|
/// engine where DDL support and introspection support diverge — callers
|
||||||
/// should corroborate against what was actually collected.
|
/// should corroborate against what was actually collected.
|
||||||
pub(crate) fn supports_foreign_keys(database_type: crate::models::connection::DatabaseType) -> bool {
|
pub(crate) fn supports_foreign_keys(database_type: crate::models::connection::DatabaseType) -> bool {
|
||||||
dialect::capabilities_for(Some(database_type)).foreign_key
|
dialect::capabilities_for(Some(database_type), None).foreign_key
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Canonical display label for a database engine (e.g. `postgres`,
|
/// Canonical display label for a database engine (e.g. `postgres`,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use super::util::{
|
|||||||
use crate::table_structure_sql::ColumnExtra;
|
use crate::table_structure_sql::ColumnExtra;
|
||||||
|
|
||||||
pub fn build_single_column_alter_sql(options: SingleColumnAlterSqlOptions) -> TableStructureSqlResult {
|
pub fn build_single_column_alter_sql(options: SingleColumnAlterSqlOptions) -> TableStructureSqlResult {
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
let dialect = capabilities.dialect;
|
let dialect = capabilities.dialect;
|
||||||
let table = qualified_table(dialect, options.schema.as_deref(), &options.table_name);
|
let table = qualified_table(dialect, options.schema.as_deref(), &options.table_name);
|
||||||
let database_label = database_label(options.database_type);
|
let database_label = database_label(options.database_type);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ use crate::models::connection::DatabaseType;
|
|||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
pub(super) fn build_column_sql(options: &TableStructureSqlOptions, warnings: &mut Vec<String>) -> Vec<String> {
|
pub(super) fn build_column_sql(options: &TableStructureSqlOptions, warnings: &mut Vec<String>) -> Vec<String> {
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
let dialect = capabilities.dialect;
|
let dialect = capabilities.dialect;
|
||||||
let table = qualified_table(dialect, options.schema.as_deref(), &options.table_name);
|
let table = qualified_table(dialect, options.schema.as_deref(), &options.table_name);
|
||||||
let database_label = database_label(options.database_type);
|
let database_label = database_label(options.database_type);
|
||||||
@@ -383,7 +383,7 @@ pub(super) fn validate_primary_key_change_scope(options: &TableStructureSqlOptio
|
|||||||
}
|
}
|
||||||
|
|
||||||
let Some(change) = primary_key_change(options) else { return Vec::new() };
|
let Some(change) = primary_key_change(options) else { return Vec::new() };
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
let supported =
|
let supported =
|
||||||
if change.old_ids.is_empty() { capabilities.add_primary_key } else { capabilities.alter_primary_key };
|
if change.old_ids.is_empty() { capabilities.add_primary_key } else { capabilities.alter_primary_key };
|
||||||
if supported {
|
if supported {
|
||||||
@@ -452,7 +452,7 @@ pub(super) fn build_primary_key_sql(
|
|||||||
table: &str,
|
table: &str,
|
||||||
warnings: &mut Vec<String>,
|
warnings: &mut Vec<String>,
|
||||||
) -> Vec<String> {
|
) -> Vec<String> {
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
|
|
||||||
// Membership by draft id (set equality): pure rename / local reorder of the same key
|
// Membership by draft id (set equality): pure rename / local reorder of the same key
|
||||||
// columns is not a PK change. A draft that drops a PK column is also rejected here.
|
// columns is not a PK change. A draft that drops a PK column is also rejected here.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use super::types::TableStructureSqlOptions;
|
|||||||
use super::util::{clean, qualified_table, quote_string};
|
use super::util::{clean, qualified_table, quote_string};
|
||||||
|
|
||||||
pub(super) fn build_table_comment_sql(options: &TableStructureSqlOptions, warnings: &mut Vec<String>) -> Vec<String> {
|
pub(super) fn build_table_comment_sql(options: &TableStructureSqlOptions, warnings: &mut Vec<String>) -> Vec<String> {
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
let new_comment = options.table_comment.as_deref().unwrap_or("");
|
let new_comment = options.table_comment.as_deref().unwrap_or("");
|
||||||
let original_comment = options.original_table_comment.as_deref().unwrap_or("");
|
let original_comment = options.original_table_comment.as_deref().unwrap_or("");
|
||||||
if clean(new_comment) == clean(original_comment) {
|
if clean(new_comment) == clean(original_comment) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ pub fn build_create_table_sql(mut options: TableStructureSqlOptions) -> TableStr
|
|||||||
capabilities = super::dialect::gaussdb_m_capabilities();
|
capabilities = super::dialect::gaussdb_m_capabilities();
|
||||||
dialect = StructureDialect::GaussdbM;
|
dialect = StructureDialect::GaussdbM;
|
||||||
} else {
|
} else {
|
||||||
capabilities = capabilities_for(options.database_type);
|
capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
dialect = capabilities.dialect;
|
dialect = capabilities.dialect;
|
||||||
}
|
}
|
||||||
options.table_name = clean(&options.table_name);
|
options.table_name = clean(&options.table_name);
|
||||||
|
|||||||
@@ -93,7 +93,10 @@ pub(super) fn gaussdb_m_capabilities() -> TableStructureCapabilities {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn capabilities_for(database_type: Option<DatabaseType>) -> TableStructureCapabilities {
|
pub(super) fn capabilities_for(
|
||||||
|
database_type: Option<DatabaseType>,
|
||||||
|
driver_profile: Option<&str>,
|
||||||
|
) -> TableStructureCapabilities {
|
||||||
let base = TableStructureCapabilities::default();
|
let base = TableStructureCapabilities::default();
|
||||||
match database_type {
|
match database_type {
|
||||||
Some(
|
Some(
|
||||||
@@ -129,6 +132,23 @@ pub(super) fn capabilities_for(database_type: Option<DatabaseType>) -> TableStru
|
|||||||
comment: true,
|
comment: true,
|
||||||
..base
|
..base
|
||||||
},
|
},
|
||||||
|
// GBase 8s is Informix-compatible, unlike the rest of the `Gbase`
|
||||||
|
// family (GBase 8a and friends) which speak MySQL wire protocol and
|
||||||
|
// SQL dialect. `driver_profile` is the only signal that distinguishes
|
||||||
|
// them (see the same check in `table_export.rs` / `table_select.rs`).
|
||||||
|
Some(DatabaseType::Gbase) if driver_profile.is_some_and(|profile| profile.eq_ignore_ascii_case("gbase8s")) => {
|
||||||
|
TableStructureCapabilities {
|
||||||
|
dialect: StructureDialect::Informix,
|
||||||
|
add_column: true,
|
||||||
|
drop_column: true,
|
||||||
|
rename_column: true,
|
||||||
|
alter_existing_column: true,
|
||||||
|
create_index: true,
|
||||||
|
drop_index: true,
|
||||||
|
rebuild_index: true,
|
||||||
|
..base
|
||||||
|
}
|
||||||
|
}
|
||||||
Some(DatabaseType::Gbase) => TableStructureCapabilities {
|
Some(DatabaseType::Gbase) => TableStructureCapabilities {
|
||||||
dialect: StructureDialect::Mysql,
|
dialect: StructureDialect::Mysql,
|
||||||
add_column: true,
|
add_column: true,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ fn build_foreign_key_sql_with_mode(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let database_label = database_label(options.database_type);
|
let database_label = database_label(options.database_type);
|
||||||
let capabilities = super::dialect::capabilities_for(options.database_type);
|
let capabilities = super::dialect::capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
let dialect = capabilities.dialect;
|
let dialect = capabilities.dialect;
|
||||||
if !capabilities.foreign_key {
|
if !capabilities.foreign_key {
|
||||||
if has_foreign_key_edits(&options.foreign_keys) {
|
if has_foreign_key_edits(&options.foreign_keys) {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ pub(super) fn build_index_sql(options: &TableStructureSqlOptions, warnings: &mut
|
|||||||
capabilities = caps;
|
capabilities = caps;
|
||||||
dialect = StructureDialect::GaussdbM;
|
dialect = StructureDialect::GaussdbM;
|
||||||
} else {
|
} else {
|
||||||
let caps = capabilities_for(options.database_type);
|
let caps = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
capabilities = caps;
|
capabilities = caps;
|
||||||
dialect = caps.dialect;
|
dialect = caps.dialect;
|
||||||
}
|
}
|
||||||
@@ -346,7 +346,7 @@ pub(super) fn build_create_index_statements(
|
|||||||
concurrently_supported: bool,
|
concurrently_supported: bool,
|
||||||
for_new_table: bool,
|
for_new_table: bool,
|
||||||
) -> Vec<String> {
|
) -> Vec<String> {
|
||||||
let capabilities = capabilities_for(database_type_for_dialect(dialect));
|
let capabilities = capabilities_for(database_type_for_dialect(dialect), None);
|
||||||
let name = clean(&index.name);
|
let name = clean(&index.name);
|
||||||
let columns: Vec<String> =
|
let columns: Vec<String> =
|
||||||
index.columns.iter().map(|column| clean(column)).filter(|column| !column.is_empty()).collect();
|
index.columns.iter().map(|column| clean(column)).filter(|column| !column.is_empty()).collect();
|
||||||
|
|||||||
@@ -1484,6 +1484,7 @@ mod tests {
|
|||||||
) -> TableStructureSqlOptions {
|
) -> TableStructureSqlOptions {
|
||||||
TableStructureSqlOptions {
|
TableStructureSqlOptions {
|
||||||
database_type: Some(DatabaseType::Sqlite),
|
database_type: Some(DatabaseType::Sqlite),
|
||||||
|
driver_profile: None,
|
||||||
schema: None,
|
schema: None,
|
||||||
table_name: table_name.to_string(),
|
table_name: table_name.to_string(),
|
||||||
columns: vec![EditableStructureColumn {
|
columns: vec![EditableStructureColumn {
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -22,7 +22,7 @@ fn build_trigger_sql_with_mode(
|
|||||||
return Vec::new();
|
return Vec::new();
|
||||||
}
|
}
|
||||||
|
|
||||||
let dialect = super::dialect::capabilities_for(options.database_type).dialect;
|
let dialect = super::dialect::capabilities_for(options.database_type, options.driver_profile.as_deref()).dialect;
|
||||||
let database_label = database_label(options.database_type);
|
let database_label = database_label(options.database_type);
|
||||||
if !matches!(dialect, StructureDialect::Mysql | StructureDialect::Oracle | StructureDialect::SqlServer) {
|
if !matches!(dialect, StructureDialect::Mysql | StructureDialect::Oracle | StructureDialect::SqlServer) {
|
||||||
if options.triggers.iter().any(has_trigger_edit) {
|
if options.triggers.iter().any(has_trigger_edit) {
|
||||||
|
|||||||
@@ -207,6 +207,11 @@ pub struct TriggerInfo {
|
|||||||
pub struct TableStructureSqlOptions {
|
pub struct TableStructureSqlOptions {
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub database_type: Option<DatabaseType>,
|
pub database_type: Option<DatabaseType>,
|
||||||
|
/// Driver profile reported by the connection (e.g. `"gbase8s"`). GBase 8s
|
||||||
|
/// is Informix-compatible rather than MySQL-compatible like the rest of
|
||||||
|
/// the `Gbase` family, so this disambiguates which dialect to generate.
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
pub driver_profile: Option<String>,
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub schema: Option<String>,
|
pub schema: Option<String>,
|
||||||
pub table_name: String,
|
pub table_name: String,
|
||||||
@@ -281,6 +286,8 @@ pub struct SingleColumnAlterSqlOptions {
|
|||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub database_type: Option<DatabaseType>,
|
pub database_type: Option<DatabaseType>,
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
pub driver_profile: Option<String>,
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pub schema: Option<String>,
|
pub schema: Option<String>,
|
||||||
pub table_name: String,
|
pub table_name: String,
|
||||||
pub column: EditableStructureColumn,
|
pub column: EditableStructureColumn,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ use super::util::clean;
|
|||||||
/// a concurrent request in the first place).
|
/// a concurrent request in the first place).
|
||||||
pub(super) fn validate_concurrent_index_scope(options: &TableStructureSqlOptions) -> Vec<String> {
|
pub(super) fn validate_concurrent_index_scope(options: &TableStructureSqlOptions) -> Vec<String> {
|
||||||
let mut errors = Vec::new();
|
let mut errors = Vec::new();
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
if !capabilities.index_concurrent || capabilities.dialect != StructureDialect::Postgres {
|
if !capabilities.index_concurrent || capabilities.dialect != StructureDialect::Postgres {
|
||||||
return errors;
|
return errors;
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ pub(super) fn validate_dameng_identity(
|
|||||||
columns: &[&EditableStructureColumn],
|
columns: &[&EditableStructureColumn],
|
||||||
warnings: &mut Vec<String>,
|
warnings: &mut Vec<String>,
|
||||||
) {
|
) {
|
||||||
if capabilities_for(options.database_type).dialect != StructureDialect::Dameng {
|
if capabilities_for(options.database_type, options.driver_profile.as_deref()).dialect != StructureDialect::Dameng {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ pub(super) fn validate_columns(columns: &[&EditableStructureColumn], warnings: &
|
|||||||
/// classes are almost always needed. This is a warning, not an error, because
|
/// classes are almost always needed. This is a warning, not an error, because
|
||||||
/// the default class may be deliberate in some cases.
|
/// the default class may be deliberate in some cases.
|
||||||
fn validate_gin_opclass_warnings(options: &TableStructureSqlOptions, warnings: &mut Vec<String>) {
|
fn validate_gin_opclass_warnings(options: &TableStructureSqlOptions, warnings: &mut Vec<String>) {
|
||||||
let capabilities = capabilities_for(options.database_type);
|
let capabilities = capabilities_for(options.database_type, options.driver_profile.as_deref());
|
||||||
if capabilities.dialect != StructureDialect::Postgres {
|
if capabilities.dialect != StructureDialect::Postgres {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ fn editable_column(column: &ColumnInfo, index: usize) -> EditableStructureColumn
|
|||||||
fn change_options(table_name: &str, columns: Vec<EditableStructureColumn>) -> TableStructureSqlOptions {
|
fn change_options(table_name: &str, columns: Vec<EditableStructureColumn>) -> TableStructureSqlOptions {
|
||||||
TableStructureSqlOptions {
|
TableStructureSqlOptions {
|
||||||
database_type: Some(DatabaseType::Mysql),
|
database_type: Some(DatabaseType::Mysql),
|
||||||
|
driver_profile: None,
|
||||||
schema: None,
|
schema: None,
|
||||||
table_name: table_name.to_string(),
|
table_name: table_name.to_string(),
|
||||||
columns,
|
columns,
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ async fn live_postgres_concurrent_index_builds_valid_index() {
|
|||||||
|
|
||||||
let result = build_table_structure_change_sql(TableStructureSqlOptions {
|
let result = build_table_structure_change_sql(TableStructureSqlOptions {
|
||||||
database_type: Some(DatabaseType::Postgres),
|
database_type: Some(DatabaseType::Postgres),
|
||||||
|
driver_profile: None,
|
||||||
schema: Some(schema.clone()),
|
schema: Some(schema.clone()),
|
||||||
table_name: "users".to_string(),
|
table_name: "users".to_string(),
|
||||||
columns: Vec::new(),
|
columns: Vec::new(),
|
||||||
@@ -184,6 +185,7 @@ async fn live_postgres_partitioned_parent_concurrent_request_rejected() {
|
|||||||
idx.id = "idx_events_id".to_string();
|
idx.id = "idx_events_id".to_string();
|
||||||
let result = build_table_structure_change_sql(TableStructureSqlOptions {
|
let result = build_table_structure_change_sql(TableStructureSqlOptions {
|
||||||
database_type: Some(DatabaseType::Postgres),
|
database_type: Some(DatabaseType::Postgres),
|
||||||
|
driver_profile: None,
|
||||||
schema: Some(schema.clone()),
|
schema: Some(schema.clone()),
|
||||||
table_name: "events".to_string(),
|
table_name: "events".to_string(),
|
||||||
columns: Vec::new(),
|
columns: Vec::new(),
|
||||||
|
|||||||
@@ -999,6 +999,7 @@ async fn live_sqlserver_table_structure_default_changes_drop_existing_constraint
|
|||||||
active.original_position = Some(1);
|
active.original_position = Some(1);
|
||||||
let result = build_table_structure_change_sql(TableStructureSqlOptions {
|
let result = build_table_structure_change_sql(TableStructureSqlOptions {
|
||||||
database_type: Some(DatabaseType::SqlServer),
|
database_type: Some(DatabaseType::SqlServer),
|
||||||
|
driver_profile: None,
|
||||||
schema: Some(schema.clone()),
|
schema: Some(schema.clone()),
|
||||||
table_name: table.to_string(),
|
table_name: table.to_string(),
|
||||||
columns: vec![sku, active],
|
columns: vec![sku, active],
|
||||||
|
|||||||
Reference in new issue
Block a user