Skip to content

basalt / notifications-sqlite/src / sqliteInAppStore

Function: sqliteInAppStore() ​

> sqliteInAppStore(dbOrLocation?): SqliteNotificationsStores

Defined in: notifications-sqlite/src/index.ts:135

Open a database (or reuse a DatabaseSync) and return the in-app store wired to it, named to drop straight into notificationsPlugin:

ts
const n = sqliteInAppStore('./data/notifications.db')
notificationsPlugin({ inApp: n.store, mailer })

Parameters ​

dbOrLocation? ​

string | DatabaseSync

Returns ​

SqliteNotificationsStores

Released under the MIT License.