From 8cea98c196ecd729fc8a5b5da482d804f1d95e35 Mon Sep 17 00:00:00 2001 From: Imamuzzaki Abu Salam Date: Mon, 17 Apr 2023 07:36:30 +0700 Subject: [PATCH] docs: add sequelize support guide --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index a679c7b1b..5424d6062 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,21 @@ Replace require("@louislam/sqlite") in your source code https://github.com/TryGhost/node-sqlite3 +## (For User) + +### Sequelize Support + +```ts +const sequelize = new Sequelize({ + dialect: 'sqlite', + dialectModule: require('@louislam/sqlite3'), + storage: 'db/database.sqlite', + logging: (msg) => serverLog.debug(msg), +}); +``` + +Add dialectModule into the Sequelize initialization like this, and you're ready to go. + ## (For Maintainers/Developers Only) ###Prepare Prebuilt