SequelizeBeforeConnectHook interface
A structural type representing a Sequelize-like instance that supports
the beforeConnect lifecycle hook. This avoids a hard dependency on the
sequelize package while still providing type safety.
Properties
| before |
Registers a callback that runs before each new database connection. |
Property Details
beforeConnect
Registers a callback that runs before each new database connection.
beforeConnect: (callback: (config: { password?: string, username?: string }) => Promise<void>) => void
Property Value
(callback: (config: { password?: string, username?: string }) => Promise<void>) => void