kiss-orm
iterlib
kiss-orm | iterlib | |
---|---|---|
2 | 1 | |
467 | 81 | |
- | - | |
0.0 | 0.0 | |
3 months ago | over 4 years ago | |
TypeScript | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kiss-orm
-
Request for learning resources: Using template literal types for parsing SQL queries in the type system
I found this: https://github.com/Seb-C/kiss-orm
-
I don't want to learn your garbage query language
I totally agree with the views of the author. That is basically why I started to build an ORM that does not include a query builder. Best of both worlds.
Now the design was far from easy, and keeping things reasonably simple without abstracting the SQL part was my biggest challenge. And this would not have been possible without the template-string tagging feature of modern JS, so it wouldn't be doable for many other languages.
https://github.com/Seb-C/kiss-orm
iterlib
-
I don't want to learn your garbage query language
I wrote such a C++ implementation during my days at Facebook around 8 years ago:
https://engineering.fb.com/2016/03/18/data-infrastructure/dr...
There is an example under "Functional programming primitives".
It was a C++ implementation that fell victim to Greenspun's 10th rule. So I wrote a specification for it, first in Clojure and then in python.
The C++ execution engine is open source:
https://github.com/facebookarchive/iterlib/
Main problems writing such code:
* The output of SQL is generally flat. GraphQL makes it nested, but doesn't support all the operators SQL does natively.
What are some alternatives?
SqlKata Query Builder - SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
sqlpp11 - A type safe SQL template library for C++
pgtyped - pgTyped - Typesafe SQL in TypeScript
honeysql - Turn Clojure data structures into SQL
sqlx - general purpose extensions to golang's database/sql
libsqldb - Wrapper to different SQL backends
pggen - Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.
Tequel
ts-sql - A SQL database implemented purely in TypeScript type annotations.