refactor(workspace): split SQL and database driver crates
This commit is contained in:
180 files changed
+1422
-538
No files matched your search
@@ -212,7 +212,7 @@ fn exports_schema_wide_objects(request: &DatabaseExportRequest) -> bool {
|
||||
}
|
||||
|
||||
/// MySQL lists triggers and events as schema-wide objects (see
|
||||
/// `crates/dbx-drivers/src/db/mysql.rs`), which is what the export writes out. Other
|
||||
/// `crates/dbx-driver-mysql/src/mysql.rs`), which is what the export writes out. Other
|
||||
/// engines either report triggers per table (PostgreSQL) or not at all, so their export
|
||||
/// stays unchanged.
|
||||
fn exports_mysql_trigger_objects(db_type: DatabaseType) -> bool {
|
||||
|
||||
@@ -2249,7 +2249,7 @@ fn postgres_index_column_sql(
|
||||
) -> String {
|
||||
// The base key text: a real column is quoted as an identifier; an expression/functional
|
||||
// key part arrives as raw expression text (the per-column `pg_get_indexdef` omits the
|
||||
// opclass — see `crates/dbx-drivers/src/db/postgres.rs`), so quoting the whole thing as
|
||||
// opclass — see `crates/dbx-driver-postgres/src/postgres.rs`), so quoting the whole thing as
|
||||
// an identifier would turn it into a nonexistent column reference (#6295).
|
||||
let base = if is_expression { column.to_string() } else { quote_identifier(column, &DatabaseType::Postgres) };
|
||||
// The opclass is read separately from `pg_index.indclass` for every key position
|
||||
|
||||
Reference in new issue
Block a user