Function createTableData

  • Generate SQL command for creating a table with data.

    Parameters

    • table: string

      table name

    • cols: ColumnTypes

      columns with their types {name: type}

    • Optional pkeys: string | string[]

      primary key(s)

    Returns QueryData

    query data for creating the table {query, data}

Generated using TypeDoc