OINO TS
    Preparing search index...

    Class OINODataSetAbstract

    Base class for SQL results that can be asynchronously iterated (but not necessarity rewinded). Idea is to handle database specific mechanisms for returning and formatting conventions in the database specific implementation. Data might be in memory or streamed in chunks and OINODataSet will serve it out consistently.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    messages: string[]

    Error messages

    status: number

    HTTP status code

    statusText: string

    HTTP status message

    success: boolean

    Wheter request was successfully executed

    Methods

    • Copy given messages to HTTP headers.

      Parameters

      • headers: OINOHeaders

        HTTP headers

      • copyErrors: boolean = true

        wether error messages should be copied (default true)

      • copyWarnings: boolean = false

        wether warning messages should be copied (default false)

      • copyInfos: boolean = false

        wether info messages should be copied (default false)

      • copyDebug: boolean = false

        wether debug messages should be copied (default false)

      Returns void

    • Is there no more content, i.e. either dataset is empty or we have moved beyond last line

      Returns boolean

    • Attempts to moves dataset to the next row, possibly waiting for more data to become available. Returns !isEof().

      Returns Promise<boolean>

    • Set HTTP error status using given code and message. Returns self reference for chaining.

      Parameters

      • status: number

        HTTP status code

      • statusText: string

        HTTP status message

      • operation: string

        operation where error occured

      Returns OINOResult