v0.44.0
This release focuses on making production SQLPage apps easier to understand, debug, and operate. Most apps should keep working without SQL changes, but maintainers should review the notes about logging and uploaded-file permissions.
- Find out why a page is slow. SQLPage can now produce a timeline for every request: when the request arrived, which
.sqlfile ran, how long it waited for a database connection, which SQL queries ran, and how long calls tosqlpage.fetch,sqlpage.run_sql, orsqlpage.exectook. This kind of request timeline is called a trace. SQLPage emits it using OpenTelemetry, the standard format understood by tools such as Grafana, Jaeger, Datadog, Honeycomb, New Relic, and others.- Easy start: run the ready-to-use
examples/telemetryDocker Compose setup. It starts SQLPage, PostgreSQL, Grafana, Tempo, Loki, Prometheus, and an OpenTelemetry collector, so you can click through a sample app and immediately see request timelines and logs. - If you already have a monitoring backend: set
OTEL_EXPORTER_OTLP_ENDPOINTand, optionally,OTEL_SERVICE_NAME=sqlpage.
- Easy start: run the ready-to-use
- Logging is now structured and safer.
LOG_LEVELis the preferred environment variable for SQLPage log filtering.RUST_LOGstill works as an alias, so existing deployments do not need an immediate change. Debug logs for OIDC andsqlpage.fetchno longer dump raw tokens, cookies, claims, or response bodies, while still keeping useful request and response metadata. - New function:
sqlpage.regex_match(pattern, text). It returns regex capture groups as JSON, orNULLwhen there is no match. This is especially useful in custom404.sqlfiles for clean dynamic routes such as/categories/sql/post/42without creating one SQL file per possible URL. - Uploaded files can now get explicit Unix permissions.
sqlpage.persist_uploaded_file(field, folder, allowed_extensions, mode)accepts a fourthmodeargument such as'644'. On Unix, uploaded files default to600, meaning only the SQLPage process owner can read them. If you serve uploaded files directly from nginx, Caddy, or another reverse proxy, pass an appropriate mode such as'644'. - Charts are easier to tune and more accessible. The chart component now supports
show_legendto hide or show the series legend. ApexCharts was updated from 5.3.6 to 5.13.0. It brings fixes for datetime axes, annotations, data labels, legend state, tooltips, keyboard navigation, reduced-motion handling, and built-in palette contrast. SQLPage also fixes the chart toolbar menu in dark mode. - The SQL parser was updated to sqlparser-rs 0.62.0, which is the latest published version at release time. For SQLPage users, this mainly means fewer false parse errors when using database-specific SQL. Notable additions include more PostgreSQL, MySQL, MSSQL, Snowflake, Redshift, Databricks, Spark SQL, and Teradata syntax, plus a SQLite parser panic fix for incomplete
REGEXP/MATCHexpressions. - Card image galleries can avoid layout shifts. The card component now supports
top_image_lazy,top_image_width, andtop_image_height, so pages with many card images can load more smoothly. - Datagrid rows can now have stable HTML anchors. The datagrid component supports a row-level
idparameter, useful for links, targeted CSS, and small bits of custom JavaScript. - OIDC login is more robust under repeated unauthenticated requests. SQLPage now caps temporary login-state cookies, avoiding the unbounded cookie growth that could happen when many protected pages were requested before authentication completed.
- HTTP error statuses are more accurate. Malformed multipart form data and invalid UTF-8 text fields now return
400 Bad Request; database connection-pool exhaustion now returns429 Too Many Requests; invalid non-Unicode static paths now return400 Bad Request; and paths that accidentally descend into a file now behave like normal missing resources. This should make monitoring dashboards and reverse-proxy logs easier to interpret. - Invalid response headers no longer crash SQLPage. If a header-only page tries to return an invalid header value, SQLPage now returns a normal error response instead of crashing the request handling path.
- DuckDB
::casts are handled better. SQLPage no longer warns unnecessarily when using DuckDB-style casts. - Database-backed filesystems fail earlier and more clearly when misconfigured. SQLPage now checks that the
sqlpage_filestable is available before preparing database filesystem queries, so a missing or inaccessible table produces a direct startup error. - Dependencies and release tooling were refreshed. This includes updates to Rust, OpenTelemetry,
sqlx-oldapi, frontend assets, Docker images, and GitHub Actions used by CI and release builds.