$ open source · GPL-3.0 — need a commercial license? imqueue.com →

IMQORMOptions interface

Everything database() needs on its first call.

Signature:

export interface IMQORMOptions 

Remarks

Only the first database() call reads this, so treat it as start-up config rather than something to vary per call. Note also that database() WRITES to the object it is given — it fills in connectionString from the environment and replaces sequelize.logging — so a config exported as a module constant and passed at every call site does not stay as written.

Properties

Property

Modifiers

Type

Description

connectionString?

string

(Optional) Postgres connection string.

logger

ILogger

Where SQL statements are logged.

modelsPath

string

Directory holding the COMPILED model files.

sequelize

SequelizeOptions

Options passed through to the Sequelize constructor.