Function setupTable

  • Generate SQL commands to set up a table (create, insert, index).

    Parameters

    • name: string

      table name

    • cols: ColumnTypes

      columns with their types {name: type}

    • rows: RowData[] = null

      rows to insert (optional)

    • opt: SetupTableOptions = {}

      options {pk, index, tsvector}

    • acc: string = ''

      string to accumulate to (internal use)

    Returns string

    SQL commands for setting up the table

Generated using TypeDoc