DirectLoadSqlGenerator
interface DirectLoadSqlGenerator
Functions
Link copied to clipboard
abstract fun copyTable(columnNameMapping: ColumnNameMapping, sourceTableName: TableName, targetTableName: TableName): Sql
Copy all records from sourceTable to targetTable. May assume that both tables exist, and have schemas which match the expected schema, i.e. io.airbyte.cdk.load.component.TableSchemaEvolutionClient.ensureSchemaMatches was invoked on both tables.
Link copied to clipboard
abstract fun createTable(stream: DestinationStream, tableName: TableName, columnNameMapping: ColumnNameMapping, replace: Boolean): Sql
Link copied to clipboard
Replace the targetTable with the sourceTable. This is typically something like
Link copied to clipboard
abstract fun upsertTable(stream: DestinationStream, columnNameMapping: ColumnNameMapping, sourceTableName: TableName, targetTableName: TableName): Sql