MCPcopy Index your code
hub / github.com/simstudioai/sim / addImportColumns

Function addImportColumns

apps/sim/lib/table/import-data.ts:124–130  ·  view source on GitHub ↗
(
  table: TableDefinition,
  additions: { name: string; type: string }[],
  requestId: string
)

Source from the content-addressed store, hash-verified

122 * tx-bound {@link addTableColumnsWithTx} in its own transaction. Returns the updated table.
123 */
124export 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). */
133export async function setTableSchemaForImport(tableId: string, schema: TableSchema): Promise<void> {

Callers 1

resolveSetupFunction · 0.90

Calls 1

addTableColumnsWithTxFunction · 0.90

Tested by

no test coverage detected