MSSQLDest
class MSSQLDest(
tables: MSSQLTableNamesSpec,
if_table_exists: IfTableExistsSpec = 'append',
transactional: bool = True,
schema_evolution: SchemaEvolutionSpec = 'strict',
dest_cfg: DestCfgSpec | None = None,
)
Bases: Dest
Categories: destination
MSSQL destination for @subscriber -- one output slot per table.
Parameters
tablesMSSQLTableNamesSpec (list[str])Target table names, one write slot per entry. Each is a
1-, 2- or 3-part name (table, schema.table or
database.schema.table); bracket-quote a part
([name]) to allow special characters.
if_table_existsIfTableExistsSpec (Literal['append', 'replace'])"append" (the default) adds rows;
"replace" truncates the table before inserting.
transactionalboolWhen True (the default), wrap every table
write in one transactional session.
schema_evolutionSchemaEvolutionSpec (Literal['strict', 'update'])What a write does when the batch's columns differ from
the table's. "replace" makes the table the batch's own, so it is
not affected. "strict" (the default) refuses a batch with a column
the table lacks; "update" adds the column and widens a number
column the batch has outgrown (a larger integer, double precision, a
decimal that keeps every digit); other type differences are left to
the database, where a value a column cannot hold fails the write. A
column the batch lacks is written NULL either way.
dest_cfgDestCfgSpec | None (Mapping[Literal['mssql.logging_level', 'mssql.schema_evolution_engine', 'tabsdata.sql.write_engine', 'tabsdata.sql.chunk_size'], Any] | None)Optional connector config; supported keys are
mssql.logging_level, tabsdata.sql.write_engine
and tabsdata.sql.chunk_size.
mssql.schema_evolution_engine takes only "iceberg", the
default.