SQL Scripts
1 node
On this page 1
To SQL Script
FunctionA SQL script for a table: a CREATE TABLE statement typed for the dialect (unless Create Table is off), then an INSERT for every row, values written as the dialect's literals and missing values as NULL.
Signature
ToSQLScript -> Text
table: Table
tableName: Text
dialect: Sql Dialect
createTable: Truthstring ToSQLScript(
Table table,
string tableName = "",
SqlDialect dialect = SqlDialect.SQLite,
bool createTable = true)Parameters
| name | type | default | description |
|---|---|---|---|
| table | Table | — | The table. |
| tableName | Text | — | The database table's name; the table's own name, or "data", when empty. |
| dialect | Sql Dialect | SQLite | The SQL to write. |
| createTable | Truth | True | Whether to begin with a CREATE TABLE statement. |
Returns
| SQL | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- SQL Scripts
- Package
- Data Analytics