languages-that-compile-to-sql

A list of languages that compile to SQL (by ajnsit)

Languages-that-compile-to-sql Alternatives

Similar projects and alternatives to languages-that-compile-to-sql

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better languages-that-compile-to-sql alternative or higher similarity.

languages-that-compile-to-sql reviews and mentions

Posts with mentions or reviews of languages-that-compile-to-sql. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-06.
  • Ask HN: ORM or Native SQL?
    10 projects | news.ycombinator.com | 6 Jan 2023
    > Therefore, you can refactor your DB without changing app code.

    Indeed, that's incredible! I tend to think that the actual layout of db tables a low level concern that is mainly driven by query performance and simplicity.

    > - Type mapping is surprisingly hard to get right, especially with composite types and arrays and custom type converters. For example, a query might return multiple jsonb columns but the app code wants to parse them into different structs.

    In Rust there's serde for converting json into structs (or enums if the shape of the json is complicated enough). Doesn't Go have a similar serialization/deserialization library?

    > - Dynamic queries don't work with prepared statements. Prepared statements only support values, not identifiers or scalar SQL sub-queries, so the codegen layer needs a mechanism to template SQL. I haven't built this out yet but would like to.

    In this case, what about stored procedures?

    But, generally, instead of a template language for SQL, I would like to have a real compile-to-SQL higher level language, that could also do dynamic queries. The trouble with templating is that dynamic queries are hard to do in a type-safe manner, and it's hard to prevent generating invalid SQL when you have a bad template substitution (and then you get bad error messages from the db). There's a few languages like this do this https://github.com/ajnsit/languages-that-compile-to-sql but none fits the bill

Stats

Basic languages-that-compile-to-sql repo stats
1
48
10.0
almost 2 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com