Releases · sqlpage/SQLPage (original) (raw)

v0.34.0

v0.34 (2025-03-23)

✨ Top Features at a Glance

🔒 Security First

POST-based Deletions

List component's delete_link now uses secure POST requests:

SELECT 'list' AS component; SELECT 'Delete me' AS title, 'delete_item.sql?id=77' AS delete_link;

Prevents accidental deletions by web crawlers and follows REST best practices

Protected Internal Files

🎨 UI & Component Upgrades

Table Styling Revolution

/* Before: .price | After: */ ._col_price { background: #f8f9fa; border-right: 2px solid #dee2e6; }

Column component

SELECT 'columns' AS component; SELECT 'View details' AS title; -- No button shown

Sticky Table Footers

SELECT 'table' AS component, true AS freeze_footers; SELECT 'Total' AS label, SUM(price) AS value, true AS _sqlpage_footer;

🌍 Internationalization

Right-to-Left Support

SELECT 'shell' AS component, true AS rtl;

📝 Content Handling

Rich Text Power

SELECT 'text' AS component, '

Important!

   New *HTML-enhanced* content.
   </div>' 
   AS unsafe_contents_md;

Base64 Image Support

Alt text

⚙️ Configuration Tweaks

{ "markdown_allow_dangerous_html": false, "markdown_allow_dangerous_protocol": false }

🐛 Notable Fixes

💡 Upgrade Guide

  1. CSS Updates
    Search/replace .your_column._col_your_column if you have custom css targetting tables.
  2. Deletion Flows
    Test list components using delete_link.
    You can now add a check that the request method is POST if you want to forbid deletions by simply loading pages.

View full configuration options →

v0.33.1

SQLPage 0.33.1 Released ! 🚀

Note

SQLPage lets you build web applications using SQL queries. If you know SQL, you can create complete web applications without spending time on traditional web development languages and frameworks.
Download for Windows, MacOS, or Linux, or try online !

This release fixes multiple bugs, and improves performance.

v0.33.0

SQLPage 0.33 Released ! 🚀

Note

SQLPage lets you build web applications using SQL queries. If you know SQL, you can create complete web applications without spending time on traditional web development languages and frameworks.
Download for Windows, MacOS, or Linux, or try online !

Hey SQL Pagers !

Today, we are releasing SQLPage v0.33.0, which brings cleaner URLs, auto-submitting forms for instant filters, dynamic dropdowns for massive datasets, and fetch upgrades for effortless API calls. Tables now format numbers based on locale, charts are sharper, and new SQL syntax support unlocks powerful queries — all making your apps faster, more dynamic, and easier to build.

Routing & URL Enhancements 🔀

Clean URLs:

Access your pages without the extra “.sql” suffix. For instance, if your file is page.sql, you can now use either:

Old URL New URL
https://example.com/page.sql https://example.com/page (or page.sql still works)

Big thanks to @guspower for their contributions!

Complete Routing Rewrite:

We overhauled our request routing system for smoother, more predictable routing across every request.

SQLPage Functions ⚙️

sqlpage.fetch (Calling External Services)

HTTP Basic Authentication

SQLPage’s sqlpage.fetch(request) now supports HTTP Basic Auth. Easily call APIs requiring a username/password. For example:

SET result = sqlpage.fetch(json_object( 'url', 'https://api.example.com/data', 'username', 'user', 'password', 'pass' ));

Check out the fetch documentation for more.

Smarter Fetch Errors & Headers Defaults

Get clearer error messages if your HTTP request definition is off (unknown fields, etc.). Plus, the headers parameter is now optional. SQLPage now sends a User‑Agent header that includes the SQLPage version by default.

New Functions: sqlpage.request_body and sqlpage.request_body_base64

New Function: sqlpage.headers

Easily manage and inspect HTTP headers with the brand‑new sqlpage.headers function.

UI Component Enhancements 🎨

Table & Card Components

Table CSS Fixes:

We fixed a bug where table cells weren’t getting the right CSS classes—your tables now align perfectly.

Native Number Formatting:

Numeric values in tables are now automatically formatted to your visitor’s locale with proper thousands separators and decimal points, and sorted numerically.
Example:
Number Formatting Example

Many thanks @francesco-cattoglio for the contribution !

Enhanced Card Layouts:

Customizing your card components is now easier:

Form Component Boosts

Auto‑Submit Forms

Set auto_submit to true and your form will instantly submit on any field change—ideal for dashboard filters.

Example

SELECT 'form' AS component, 'Filter Results' AS title, true AS auto_submit; SELECT 'date' AS name;

Dynamic Options for Dropdowns

Use options_source to load dropdown options dynamically from another SQL file. Perfect for autocomplete with large option sets.

Example
index.sql

select 'form' as componentt; select 'my_field' as name, 'select' as type, 'options_source.sql' as options_source;

options_source.sql

select 'json' as component; select id as value, label as label from my_options where label like $search || '%';

Result

Screencast.From.2025-02-15.13-52-43.mp4

Markdown in Field Descriptions

With the new description_md property, render markdown in form field descriptions for improved guidance.
Thanks to @theochr72 for the contribution !

Improved Header Error Messages

Now you’ll get more helpful errors if header components (e.g., json, cookie) are used incorrectly.

Chart, Icons & CSS Updates 📊

ApexCharts Upgrade

We updated ApexCharts to v4.4.0 for smoother charts and minor bug fixes.

Tabler Icons & CSS

Enjoy a refreshed look:

CSV Import & Error Handling 📥

SQL Parser & Advanced SQL Support 🔍

Upgraded SQL Parser (v0.54):
Our sqlparser is now at v0.54, with support for advanced SQL syntax:

FROM events
WHERE
(start_time, end_time)
OVERLAPS
($start_filter::timestamp, $end_filter::timestamp);


Happy coding and keep pushing the boundaries of what you can build with SQL!

v0.32.1

Note

SQLPage lets you build web applications using SQL queries. If you know SQL, you can create complete web applications without spending time on traditional web development languages and frameworks.
Download for Windows, MacOS, or Linux

This is a bugfix release.

v0.32.0

SQLPage v0.32: Reliability, Polish, and a New Web Editor 🚀

Note

SQLPage lets you build web applications using SQL queries. If you know SQL, you can create complete web applications without spending time on traditional web development languages and frameworks.
Download for Windows, MacOS, or Linux

Dear SQLPage community,

As we close out 2024, we're excited to share significant improvements that make SQLPage more robust and easier to use.

We're also introducing editor.datapage.app - a free, browser-based editor where you can create and deploy SQLPage websites instantly, no installation required!

Wishing you all a Merry Christmas and a Happy New Year! 🎄✨

🔒 Database Reliability

Example protection against temporary table issues on postgres:

BEGIN; CREATE TEMPORARY TABLE t (x int) ON COMMIT DROP; -- Operations now safely roll back on error COMMIT;

🎨 UI Improvements

🛠 Developer Features

These updates focus on database reliability, component improvements, and developer productivity - making SQLPage a more robust tool for building web applications with SQL.

v0.31.0

SQLPage is a tool that allows users to create dynamic, SQL-powered websites with minimal coding effort.

This release, v0.31.0, introduces enhanced table functionalities, deeper database integration, smarter search features, and improved debugging with detailed error logs. It also upgrades security and optimizes chart performance, making it easier to build secure data-driven websites.

🚀 New Features

Improved Components


Database Enhancements


Security and Performance


🛠 Bug Fixes

Database and Compatibility Fixes

Component Fixes

Usability Enhancements


v0.30.1

v0.30.1: Bugfix release

Many thanks to @DSMejantel for quickly reporting the issue.

v0.30.0

With SQLPage 0.30, build APIs in 2 lines of SQL

🤖 Easy APIs

🔒 Database Connectivity

😎 Developer experience improvements

📈 Table & Search Improvements

🖼️ UI & UX Improvements

🛠️ Fixes and improvements

v0.29.0

SQLPage v0.29 : better SQL websites 🎨

Detailed release notes

spreadsheet component

There is a new spreadsheet component that displays your data as an editable excel-like spreadsheet that supports custom formatting.

For licensing reasons, it is not included in the default SQLPage distribution, but you can download it from https://github.com/lovasoa/sqlpage-spreadsheet.

v0.28.0

🎉 SQLPage v0.28 🎉