@shabados/database
Version:
A digital representation of Sikh Bani and other Panthic texts.
23 lines (17 loc) • 417 B
text/typescript
import { drizzle } from 'drizzle-orm/libsql'
import { MASTER_DB } from './paths'
import relations from './relations'
type Options = {
path?: string
}
const createDatabaseClient = ({ path = MASTER_DB }: Options = {}) =>
drizzle({
relations,
casing: 'snake_case',
connection: {
url: `file:${path}`,
},
})
export default createDatabaseClient
export * from './paths'
export { relations }