Datasource Alter Table
Alters an existing table to match the datasource mapping: adds missing columns, optionally drops extras.
Pure Function
No
Execute Inputs
Execution
INPUTExecution Input.
Execute Outputs
Complete
OUTPUTFired when alteration completes.
Data Inputs
Datasource
INPUTName of the datasource to use.
Table Name
INPUTThe name of the SQL table to alter.
Mapping
INPUTThe datasource mapping to use for altering the table.
Execute
INPUTWhether to actually execute the ALTER TABLE SQL or just return it.
Data Outputs
Generated SQL
OUTPUTstring
The ALTER TABLE SQL generated.
Multiple
Settings
Remove Extra Columns
BOOLEANIf true, columns in the table but not in the mapping will be dropped.
Default: false
Throw on SQL Error
BOOLEANIf true, will throw an error if a SQL error occurs during query.
Default: true
Debug
STRINGBreak on node when executing.
Default: No
Options:
NoBeforeInputsBeforeProcessingAfterProcessing