A driver that can hold multiple Sessions with a remote MillenniumDB instance. The Sessions have the interface for sending queries and receiving results. It is expected that an application holds a single driver instance.

Constructors

  • This constructor should never be called directly

    Parameters

    • url: string

      the URL for the MillenniumDB server

    Returns Driver

Properties

_open: boolean
_sessions: Session[]
_url: URL

Methods

  • Cancel the execution of a currently running query. Internally this will create a temporary Session that will be closed after the query has been cancelled.

    Parameters

    Returns Promise<void>

  • Close all open Sessions

    Returns Promise<void>

    Promise that will be resolved when all Sessions are closed