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

Function coerceRowToSchema

apps/sim/lib/table/validation.ts:352–355  ·  view source on GitHub ↗
(data: RowData, schema: TableSchema)

Source from the content-addressed store, hash-verified

350 * row separately.
351 */
352export function coerceRowToSchema(data: RowData, schema: TableSchema): ValidationResult {
353 coerceRowValues(data, schema)
354 return validateRowAgainstSchema(data, schema)
355}
356
357/** Validates row data size is within limits. */
358export function validateRowSize(data: RowData): ValidationResult {

Callers 12

runTableUpdateFunction · 0.90
bulkInsertImportBatchFunction · 0.90
insertRowFunction · 0.90
batchInsertRowsWithTxFunction · 0.90
replaceTableRowsWithTxFunction · 0.90
upsertRowFunction · 0.90
updateRowFunction · 0.90
updateRowsByFilterFunction · 0.90
batchUpdateRowsFunction · 0.90
validation.test.tsFile · 0.90
validateRowDataFunction · 0.85
validateBatchRowsFunction · 0.85

Calls 2

coerceRowValuesFunction · 0.85
validateRowAgainstSchemaFunction · 0.85

Tested by

no test coverage detected