Skip to content

basalt / teams-sqlite/src / sqliteTeamsStores

Function: sqliteTeamsStores() ​

> sqliteTeamsStores(dbOrLocation?): SqliteTeamsStores

Defined in: teams-sqlite/src/index.ts:241

Open a database (or reuse a DatabaseSync) and return both team stores wired to it, named to drop straight into teamsPlugin:

ts
const t = sqliteTeamsStores('./data/teams.db')
teamsPlugin({ memberships: t.memberships, invitations: t.invitations })

Parameters ​

dbOrLocation? ​

string | DatabaseSync

Returns ​

SqliteTeamsStores

Released under the MIT License.