2022-08-29 23:57:19 +02:00
2022-08-29 21:38:14 +02:00
2022-08-29 23:56:54 +02:00
2022-08-29 19:20:03 +02:00
2022-08-29 21:40:51 +02:00
2022-08-29 23:57:19 +02:00
2022-08-29 19:19:49 +02:00
2022-08-28 01:04:10 +02:00
2022-08-28 01:04:10 +02:00
2022-08-29 23:57:19 +02:00
2022-08-29 19:20:03 +02:00
2022-08-29 23:56:54 +02:00

SQLpage

A short video explaining the concept of sqlpage

SQLPage is an SQL-only webapp builder. It is meant for data scientists, analysts, and business intelligence teams to build powerful data-centric applications quickly, without worrying about any of the traditional web programming languages and concepts.

With SQLPage, you write simple .sql files containing queries to your database to select, group, update, insert, and delete your data, and you get good-looking clean webpages displaying your data as text, lists, grids, plots, and forms.

Supported databases

  • sqlite
  • PostgreSQL, and other compatible databases such as CockroachDB and Aurora.
  • MySQL, and other compatible databases such as MariaDB and TiDB.

How it works

SQLPage is a web server written in rust. When it receives a request to a URL ending in .sql, it finds the corresponding SQL file, runs it on the database, passing it information from the web request as SQL statement parameters. When the database starts returning rows for the query, SQLPage maps each piece of information in the row to a parameter in one of its pre-defined components' templates, and streams the result back to the user's browser.

Get started

  • Install docker
  • In a terminal, run the following command: docker run -it --name sqlpage lovasoa/sqlpage --port 8080:8080 --volume "$(pwd):/var/www"
  • Create a file called index.sql with the contents from this example
  • Open https://localhost:8080 in your browser

Technologies and libraries used

  • actix web handles HTTP requests at an incredible speed,
  • tabler handles the styling for professional-looking clean components,
  • tabler icons is a large set of icons you can select directly from your SQL,
  • handlebars render HTML pages from readable templates for each component.
S
Description
纯 SQL 数据应用构建器,自动在 SQL 查询之上生成界面|GitHub 镜像 2.5k · 🍴 177
https://github.com/sqlpage/sqlpage Readme 69 MiB
Languages
Rust 77.5%
Handlebars 8.3%
TypeScript 6%
SQL 3.4%
JavaScript 3.2%
Other 1.5%