Skip to content

App Database Access

Lombok apps can declare database support as part of the app platform.

The app manifest expresses this as:

{
"database": {
"enabled": true
}
}

In practice, this is not just a loose boolean preference. The source-aligned review flagged that the database-enabled form should be treated as a specific enabled contract rather than vague optional wording.

Database support is part of the declared platform surface for apps.

This allows app functionality to go beyond simple event callbacks and into richer application behavior.

The reviewed codebase and Senior Dev review point to concrete implementation pieces such as:

  • app-level PostgreSQL support
  • Drizzle-oriented integration
  • app-related database provisioning helpers such as createLombokAppPgDatabase
  • migration assets such as /migrations/*.sql within packaged app structure

This means app database access should be understood as a real platform capability, not just a conceptual placeholder.

Database-aware app execution belongs most naturally alongside:

  • the app manifest
  • worker/backend app logic
  • the App Worker SDK

Continue with: