Divooka Reference

SQL Scripts

1 node

On this page 1

To SQL Script

Function

A 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: Truth
string ToSQLScript(
    Table table,
    string tableName = "",
    SqlDialect dialect = SqlDialect.SQLite,
    bool createTable = true)

Parameters

nametypedefaultdescription
tableTable—The table.
tableNameText—The database table's name; the table's own name, or "data", when empty.
dialectSql DialectSQLiteThe SQL to write.
createTableTruthTrueWhether to begin with a CREATE TABLE statement.

Returns

SQLText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
SQL Scripts
Package
Data Analytics