Skip to content

basalt / comments-sqlite/src / sqliteCommentsStore

Function: sqliteCommentsStore() ​

> sqliteCommentsStore(dbOrLocation?): SqliteCommentsStores

Defined in: comments-sqlite/src/index.ts:179

Open a database (or reuse a DatabaseSync) and return the comment store wired to it, named to drop straight into commentsPlugin:

ts
const c = sqliteCommentsStore('./data/comments.db')
commentsPlugin({ store: c.store })

Parameters ​

dbOrLocation? ​

string | DatabaseSync

Returns ​

SqliteCommentsStores

Released under the MIT License.