A Session is used to send queries and receive results from the remote MillenniumDB instance

Constructors

  • This constructor should never be called directly

    Parameters

    • url: URL

      the URL for the MillenniumDB server

    Returns Session

Properties

_chunkDecoder: ChunkDecoder
_connection: WebSocketConnection
_messageDecoder: MessageDecoder
_open: boolean
_responseHandler: ResponseHandler
_results: Result[]

Methods

  • Try to cancel another query given a Result. This method should be called exclusively by driver

    Parameters

    Returns Promise<void>

    a promise that resolves when the query is cancelled

  • Handler for chunks that were decoded

    Parameters

    Returns void

  • Handler for incoming data from the server

    Parameters

    Returns void

  • Send a request to the server and attach an observer for its response

    Parameters

    • iobuffer: IOBuffer

      the data to send

    • observer: ResponseHandlerObserver

      that will handle the received data

    Returns void

  • Sends a request for executing a query to the server

    Parameters

    • query: string

      the query to execute

    Returns Result

    a Result for the query