Files
metabuilder/dbal
johndoe6345789 be8fc0ded5 Phase 1: Bootstrap database and fix DBAL for public pages
- Generated Prisma schema from YAML
- Created database file at dbal/shared/prisma/dev.db
- Fixed seedDatabase() path resolution for Next.js context
- Fixed DBAL tenant filter to allow public pages (tenantId: null)
- Added 'use client' directive to all fakemui components using React hooks
- Added DATABASE_URL environment variable configuration

The bootstrap endpoint successfully seeds the database with installed packages.
Front page now can query for public PageConfig entries without tenant requirement.

Remaining:
- Fix layout package path resolution
- Test front page rendering with database-driven components
- Create comprehensive E2E tests with Playwright

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-16 15:44:54 +00:00
..

DBAL - Database Abstraction Layer

A language-agnostic database abstraction layer that provides a secure interface between client applications and database backends.

Structure

dbal/
├── development/     # TypeScript implementation (fast iteration)
├── production/      # C++ implementation (security & performance)
├── shared/          # Shared resources (API specs, tools, etc.)
└── docs/            # Documentation

Development

TypeScript (Development)

cd development
npm install
npm run build
npm test

C++ (Production)

cd production
# See production/docs/ for C++ build instructions

Shared Resources

  • API Schemas: shared/api/schema/
  • Tools: shared/tools/ (codegen, build assistant)
  • Scripts: shared/scripts/ (build, test)

License

MIT - See LICENSE file.