all repos — stealth-developers @ 60fe6db0e7f98b1e1053f30208437a0df900c7af

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