We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e61709b commit abffd3eCopy full SHA for abffd3e
src/index.ts
@@ -2,21 +2,27 @@ import { drizzle } from 'drizzle-orm/libsql'
2
3
import { MASTER_DB } from './paths'
4
import relations from './relations'
5
+import * as schema from './schema'
6
+
7
+export const defaultConfig = {
8
+ casing: 'snake_case',
9
+ relations,
10
+ schema,
11
+} as const
12
13
14
type Options = {
15
path?: string
16
}
17
18
const createDatabaseClient = ({ path = MASTER_DB }: Options = {}) =>
19
drizzle({
- relations,
- casing: 'snake_case',
20
+ ...defaultConfig,
21
connection: {
22
url: `file:${path}`,
23
},
24
})
25
26
export default createDatabaseClient
27
-export * from './paths'
-export { relations }
28
+export * from './paths'
0 commit comments