(
table: TableDefinition,
additions: { name: string; type: string }[],
requestId: string
)
| 122 | * tx-bound {@link addTableColumnsWithTx} in its own transaction. Returns the updated table. |
| 123 | */ |
| 124 | export async function addImportColumns( |
| 125 | table: TableDefinition, |
| 126 | additions: { name: string; type: string }[], |
| 127 | requestId: string |
| 128 | ): Promise<TableDefinition> { |
| 129 | return db.transaction((trx) => addTableColumnsWithTx(trx, table, additions, requestId)) |
| 130 | } |
| 131 | |
| 132 | /** Overwrites a table's schema during an import (used when inferring columns from the file). */ |
| 133 | export async function setTableSchemaForImport(tableId: string, schema: TableSchema): Promise<void> { |
no test coverage detected