SequelizeBeforeConnectHook interface
beforeConnectライフサイクルフックをサポートするSequelizeのようなインスタンスを表す構造型です。 これにより、 sequelize パッケージへの厳密な依存を避けつつ、型式安全も提供できます。
プロパティ
| before |
新しいデータベース接続の前に実行されるコールバックを登録します。 |
プロパティの詳細
beforeConnect
新しいデータベース接続の前に実行されるコールバックを登録します。
beforeConnect: (callback: (config: { password?: string, username?: string }) => Promise<void>) => void
プロパティ値
(callback: (config: { password?: string, username?: string }) => Promise<void>) => void