A list of entity settings describing the entities to be registered with this instance
A url of database to connect to. For instance, to connect to a
test on MySQL server running on your computer it will
A username used for connection
A password used for connection
A size of connection pool. Determines how many connections to the db will be kept at max. Useful for multithreaded databases.
An initialization mode for this instance
Amount of seconds the underlying connections may remain idle. Determines how often the "keepalive" queries will be emitted.
Free all the underlying resources.
Delete a persisted entity
Fetch an existing entity by id.
Select entities using a plain sql statement.
The type of entities to fetch
The sql with question-symbols used as placeholders for values
Matching entities of type
Current DateTime at DB server.
Return the sorm.Querier object for performing a read-query on a specified entity type.
The entity type
The accessor object. An abstraction over all kinds of supported SELECT-queries.
Save the entity.
Saves the entity by overwriting the existing one if one with the matching unique keys exists and creating a new one otherwise.
Perform several db-requests in a single transaction.
The result of the closure
The closure wrapping the actions performed in a single transaction.
The result of the last statement of the passed in closure
Current time at DB server in milliseconds.
now().getMillis should be used instead