Skip to content
Greg Bowler edited this page May 9, 2026 · 3 revisions
  • Explain how WebEngine applications commonly move from static pages to persistent state.
  • Position the database layer as part of the normal application path.

Connecting to a database

  • Explain the role of database configuration.
  • Mention supported drivers and the idea of connection settings.

Organising SQL and queries

  • Explain why SQL should live outside page logic.
  • Explain the role of "query collections" and named queries.
  • Encourage treating SQL as its own maintained part of the application.

Using database code from the app

  • Explain how page logic should call application classes or services rather than mixing raw query work everywhere.
  • Explain where result shaping should happen.

Using the SQL Builder

  • Explain how query organisation supports larger projects, but SQL has its own limitations.
  • PHP files can contain class representations of queries.
  • These query classes can extend other classes.

See how everything is loaded on demand in the service container.

Clone this wiki locally