Introducing SQLPage : write websites entirely in SQL

65 points lovasoa

SQLPage is a web server that executes .sql files and renders the result as web pages, allowing the creation of entire dynamic websites in SQL.

​

Example SQL code and rendered webpage

​

SQLPage is written in rust, using several awesome crates:

  • sqlparser to parse SQL queries and detect variable bindings
  • sqlx to interface with multiple databases (I am considering moving to something else to support more databases, though)
  • actix to handle HTTP requests
  • handlebars to create the HTML templates of all the built-in components

I would love to get feedback on the rust code at:
https://github.com/lovasoa/SQLpage