airflow.providers.microsoft.mssql.dialects.mssql

Classes

MsSqlDialect

Microsoft SQL Server dialect implementation.

Module Contents

class airflow.providers.microsoft.mssql.dialects.mssql.MsSqlDialect(hook, **kwargs)[source]

Bases: airflow.providers.common.sql.dialects.dialect.Dialect

Microsoft SQL Server dialect implementation.

get_primary_keys(table, schema=None)[source]
generate_replace_sql(table, values, target_fields, **kwargs)[source]

Generate the REPLACE SQL statement.

Parameters:
  • table – Name of the target table

  • values – The row to insert into the table

  • target_fields – The names of the columns to fill in the table

Returns:

The generated REPLACE SQL statement

Return type:

str

Was this entry helpful?