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

Sequelize.getQueryInterface() method

The query interface for this connection, with view support and the widened returning option.

Signature:

getQueryInterface(): QueryInterface;

Returns:

QueryInterface

The wrapped query interface.

Remarks

Sequelize's own interface is wrapped once, the first time this is called, and the same wrapped object is returned afterwards. The wrapper adds createView and dropView, makes every write method treat an empty returning array as false, and teaches the select-query generator to substitute a dynamic view's definition into the statement.