SQLPage v0.48.0
Documentation
Build your first website in SQL, or look up a component or function for the page you are writing.
Build your first website
Reference
Anatomy of a SQL page
Each SQL file is a page. Its first SELECT names a component and sets its top-level parameters. The rows returned by the next SELECT supply the row-level parameters. This list uses both.
A reading list
select 'list' as component, 'Reading list' as title;
select 'The list component' as title,
'/component.sql?component=list' as link;
Result
Reading list
Guides
Your first website
Install SQLPage and build a website from a SQL file.
SQL and variables
Read request parameters, set variables, and call SQLPage functions.
Custom components
Render your own HTML with Handlebars templates.
Database migrations
Create and update your database schema with versioned SQL files.
Custom URLs
Give your pages readable URLs and route requests to SQL files.
Reverse proxy
Serve your site with Nginx and HTTPS.
Managed hosting
Try SQLPage online or publish your website with DataPage.
Have a question? Ask on the SQLPage forum.