managarten/apps-archived/inventory/apps/backend/src/db/connection.ts
Till-JS 44897ae758 chore: archive inventory, presi, storage apps
Move these apps to apps-archived/ as they are not actively developed:
- inventory: Inventory management app
- presi: Presentation tool
- storage: Cloud storage app

These can be reactivated by moving back to apps/ when needed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 15:22:38 +01:00

11 lines
363 B
TypeScript

import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import * as schema from './schema';
const connectionString =
process.env.DATABASE_URL || 'postgresql://manacore:devpassword@localhost:5432/inventory';
const client = postgres(connectionString);
export const db = drizzle(client, { schema });
export type DbClient = typeof db;