[WIP] book tracker on the atmosphere~
1import { drizzle } from 'drizzle-orm/libsql';
2import { createClient } from '@libsql/client';
3import * as schema from './schema';
4import { env } from '$env/dynamic/private';
5
6if (!env.DATABASE_URL) throw new Error('DATABASE_URL is not set');
7
8const client = createClient({ url: env.DATABASE_URL });
9
10export const db = drizzle(client, { schema });