all repos — stealth-developers @ 14d97e857cddc21919a4158fe9daa53d1112a264

pkgs/db/src/index.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
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 * from "./utils";
export * from "drizzle-orm";
export default db;