Variable stream

stream: ((table, stream, opt?, acc?) => Promise<string>)

Type declaration

    • (table, stream, opt?, acc?): Promise<string>
    • Generate SQL command for INSERT INTO using a stream of values.

      Parameters

      • table: string

        table name

      • stream: Readable

        readable stream of row objects {column: value}

      • opt: InsertIntoOptions = {}

        options {pk}

      • acc: string = ''

        string to accumulate to (internal use)

      Returns Promise<string>

      SQL command to insert into the table (promise)

Generated using TypeDoc