pkgs/db/src/index.ts (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import { createClient } from '@libsql/client';
import { drizzle } from 'drizzle-orm/libsql';
import config from '@stealth-developers/config';
const client = createClient({
url: config.db.url,
authToken: config.db.auth
});
const db = drizzle({ client });
export * from "./schemas"
export default db
|