@terascope/data-mate / teal-frame/table
teal-frame/table
Functions
buildPlan()
buildPlan(
config):FieldPlan[]
Defined in: data-mate/src/teal-frame/table.ts:31
Resolves each top-level field to its coercion and its DuckDB value conversion.
Dot-notation children are folded into their parent, so the plan matches the table's real column set.
Parameters
| Parameter | Type |
|---|---|
config | FrameConfig |
Returns
createTable()
createTable(
context,config,name?):Promise<CreatedTable>
Defined in: data-mate/src/teal-frame/table.ts:67
Creates the table for a config and returns its name and columns.
Used by both fromRecords (which then appends records) and empty (which is then filled by
appendParquet).
Parameters
| Parameter | Type |
|---|---|
context | DuckContext |
config | FrameConfig |
name? | string |
Returns
Promise<CreatedTable>
nextTableName()
nextTableName(
name?):string
Defined in: data-mate/src/teal-frame/table.ts:19
Returns a unique table name. Names never come from user data, so a counter is enough.
Parameters
| Parameter | Type |
|---|---|
name? | string |
Returns
string