HTSQL
Hyper Text Structured Query Language (HTSQL) is a schema-driven URI-to-SQL query language that takes a request over HTTP, converts it to a SQL query, executes the query against a database, and returns the results in a format best suited for the user agent (CSV, HTML, etc.) The HTSQL language is implemented on "HTSQL servers," which use HTSQL to convert web requests into equivalent SQL, executes requests on a server-side database, and returns results in XML, HTML, CSV, JSON, or YAML formats.[2] The current implementation as of April 2010 uses Python and works with PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server databases.[src] HTSQL was prototyped and developed by Clark Evans (who proposed YAML in 2001 ) and implemented by Kirill Simonov, both of Prometheus Research.[7]
Hyper Text Structured Query Language (HTSQL) is a schema-driven URI-to-SQL query language that takes a request over HTTP, converts it to a SQL query, executes the query against a database, and returns the results in a format best suited for the user agent (CSV, HTML, etc.) The HTSQL language is implemented on "HTSQL servers," which use HTSQL to convert web requests into equivalent SQL, executes requests on a server-side database, and returns results in XML, HTML, CSV, JSON, or YAML formats.[2] The current implementation as of April 2010 uses Python and works with PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server databases.[src] HTSQL was prototyped and developed by Clark Evans (who proposed YAML in 2001 ) and implemented by Kirill Simonov, both of Prometheus Research.[7] ==Scope== HTSQL's intended audience is business users who are not SQL programmers.[5] It seeks to simplify non-intuitive relational queries, such as aggregates and projections.[5] The goal is not completeness in replicating SQL, but simplicity and intuitiveness.[src] HTSQL allows users who are familiar with the data, but not SQL syntax, to directly access the database without going through an application.[5] ==Syntax== HTSQL uses a URI-based query syntax.[3] Queries typically begin with a single table, optionally prefixed by a schema and followed by a filter expression to limit the number of rows that are returned.[src] ==Examples== Joins can be made across tables by referencing the column name preceded by the table name.[src] This example requests the title of a degree program from the program table and the school name from the school table: /program{school.name, title} The result of this query from the HTSQL command-line system is: program ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ school.name | title --------------------------+----------------------------------- School of Art and Design | Post Baccalaureate in Art History School of Art and Design | Bachelor of Arts in Art History School of Art and Design | Bachelor of Arts in Studio Art School of Business | Graduate Certificate in Accounting ...[3] Aggregate expressions can be used when there are many-to-one relationships in the database.[5] /school{name, count(program), count(department)} The result shows the count (number) of programs and departments in each school: school ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ name | count(program) | count(department) -------------------------+----------------+------------------ School of Art and Design | 3 | 2 School of Business | 5 | 3 College of Education | 7 | 2 School of Engineering | 8 | 4 ==Applications== HTSQL can be used for ad hoc database queries.[5] Its developers consider it to be more concise and intuitive and therefore less error-prone than SQL for non-technical users.[5] HTSQL can also be used by "accidental programmers", such as data analysts and UI developers.[5] Besides more readable, HTTP-based queries, HTSQL's developers claim it helps avoid common SQL mistakes like accidental joins.[5] ==Versions and licensing== HTSQL follows a dual license model.[6] The software may be used free of charge with open source relational databases, including MySQL and PostgreSQL.[src] Source code is available on the bitbucket site.[7] A commercial version of HTSQL, compatible with commercial databases like Oracle and Microsoft SQL Server, is also available.[5] ==References==[src]
24 sentences · 24 cited inline · 7 references stored
References
- Home . htsql.org . · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "Home . htsql.org ." Home. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "Home . htsql.org ." Home. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA Home. (2026). Home . htsql.org . Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
- Hyper text structured query language . retrieved 4 May 2023 · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "Hyper text structured query language . retrieved 4 May 2023." Hyper text structured query language. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "Hyper text structured query language . retrieved 4 May 2023." Hyper text structured query language. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA Hyper text structured query language. (2026). Hyper text structured query language . retrieved 4 May 2023. Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
- Introduction — HTSQL -- HyperText Structured Query Language v1.0 documentation . www.htsql.org . · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "Introduction — HTSQL -- HyperText Structured Query Language v1.0 documentation . www.htsql.org ." Introduction — HTSQL -- HyperText Structured Query Language v1. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "Introduction — HTSQL -- HyperText Structured Query Language v1.0 documentation . www.htsql.org ." Introduction — HTSQL -- HyperText Structured Query Language v1. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA Introduction — HTSQL -- HyperText Structured Query Language v1. (2026). Introduction — HTSQL -- HyperText Structured Query Language v1.0 documentation . www.htsql.org . Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
- HTSQL Manual: HyperText Structured Query Language . clarkevans.com . · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "HTSQL Manual: HyperText Structured Query Language . clarkevans.com ." HTSQL Manual: HyperText Structured Query Language. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "HTSQL Manual: HyperText Structured Query Language . clarkevans.com ." HTSQL Manual: HyperText Structured Query Language. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA HTSQL Manual: HyperText Structured Query Language. (2026). HTSQL Manual: HyperText Structured Query Language . clarkevans.com . Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
- accidental programmers · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "accidental programmers." HTSQL can also be used by "accidental programmers", such as data analysts and UI developers. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "accidental programmers." HTSQL can also be used by "accidental programmers", such as data analysts and UI developers. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA HTSQL can also be used by "accidental programmers", such as data analysts and UI developers. (2026). accidental programmers. Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
- HTSQL Permissive License . htsql.org . retrieved 4 May 2023 · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "HTSQL Permissive License . htsql.org . retrieved 4 May 2023." HTSQL Permissive License. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "HTSQL Permissive License . htsql.org . retrieved 4 May 2023." HTSQL Permissive License. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA HTSQL Permissive License. (2026). HTSQL Permissive License . htsql.org . retrieved 4 May 2023. Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
- prometheus / htsql / source — bitbucket.org . bitbucket.org . · retrieved 2026-06-01 · rev 1357423517
Cite this reference
MLA "prometheus / htsql / source — bitbucket.org . bitbucket.org ." prometheus / htsql / source — bitbucket. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517. Accessed 30 November 2026.
Chicago "prometheus / htsql / source — bitbucket.org . bitbucket.org ." prometheus / htsql / source — bitbucket. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357423517.
APA prometheus / htsql / source — bitbucket. (2026). prometheus / htsql / source — bitbucket.org . bitbucket.org . Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357423517
Cite this article
MLA
"HTSQL." encyclopegia.org, 2026, https://encyclopegia.org/wiki/htsql. Accessed 30 November 2026.
Chicago
"HTSQL." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/htsql.
APA
encyclopegia.org. (2026). HTSQL. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/htsql
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON