InternalProtected_Protected_Protected_Implementation method to return a dataset from the database like query(),
but returns a Readable stream instead.
The database query
Optionalparams: anyThe query parameters
OptionalstreamOptions: anyReadable stream options
Readable
AbstractcommitAbstractendGets the underlying Database API
any
Gets the callback stacktrace to determine what opened this connection. Useful for debugging lingering connections.
string - A stacktrace
Returns the current timeout setting
number in milliseconds
Returns true if this server is part of a replication cluster.
Returns true if the connection has been closed.
Returns true if this server is the source. Will also return true if there is no replication detected.
Returns true if connection was created without write access
boolean
Returns true if this server is a replication server.
AbstractisImplementation method to determine if the connection is in an active transaction.
boolean
Queries the database for a dataset.
The database query
Promise
AbstractrollbackSets the timeout of this connectino
in milliseconds
AbstractstartImplementation method to start a transaction.
OptionalisolationLevel: IsolationLevelPromise
The database query
OptionalstreamOptions: anyStream options
Readable
Do not call
new Databasedirectly. UseDatabase.getConnectionto create aDatabaseConnectionobject.Implements
IDatabaseConnection