sql-template-tag
ES2015 tagged template string for preparing SQL statements, works with `pg`, `mysql`, `sqlite` and `oracledb` (by blakeembrey)
Atlas.Orm
A data mapper implementation for your persistence model in PHP. (by atlasphp)

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured
sql-template-tag | Atlas.Orm | |
---|---|---|
3 | 6 | |
368 | 431 | |
0.0% | 0.0% | |
6.3 | 1.8 | |
about 1 year ago | about 4 years ago | |
TypeScript | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
sql-template-tag
Posts with mentions or reviews of sql-template-tag.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-14.
-
Python: Just Write SQL
You can avoid this entirely with JavaScript's tagged template literals. Here is an example library: https://github.com/blakeembrey/sql-template-tag
-
Knex Raw SQL String SQL Highlighting VS Code and best practices to avoid SQL Injection Attack?
If you prefer SQL and you use postgres you can check out slonik. If you want to keep using knex you can use https://github.com/blakeembrey/sql-template-tag. They will add placeholders for all the values and expose helper for query building via strings (e.g. a special join). At the same time they are typesafe.
- Objection to ORM Hatred
Atlas.Orm
Posts with mentions or reviews of Atlas.Orm.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-12.
-
🔥 Yii Database abstraction release
I'm sure Atlas would compare favorably here.
-
Active Record: How We Got Persistence Perfectly Wrong
On second reading, I begin to think that parts of it also apply to Data Mapper implementation practices I see in the wild. I'll need to think about that some more, and perhaps apply the lessons to Atlas.
-
Simple Solutions 1 - Active Record versus Data Mapper
It was that article that inspired me to put together Atlas.
-
Increase performance by using Eloquent's `setRelation` method
That's just what Doctrine does, as does Atlas.
-
Critical SQL injection in doctrine/dbal 3.0.0 - 3.1.3 for LIMIT clause generation, please upgrade immediately to 3.1.4
Perhaps Atlas would be more to your liking.
-
Objection to ORM Hatred
> People always seem to ignore the third option: using an ORM that embraces SQL!
I had a similar revelation several years ago, based on the distinctions between a "domain model" and "persistence model" described by Mehdi Khalili, resulting in Atlas for PHP: http://atlasphp.io
What are some alternatives?
When comparing sql-template-tag and Atlas.Orm you can also consider the following projects:
mini_sql - a minimal, fast, safe sql executor
Doctrine - Doctrine Object Relational Mapper (ORM)
sqlc-gen-python
Eloquent - [READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework)
Dapper.SimpleCRUD - Who wants to write basic read/insert/update/delete statements? SimpleCRUD provides simple CRUD helpers for Dapper.
Aura.Sql - SQL database access through PDO.

SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Keep full control over the data you collect and tailor the form builder’s entire look and feel to your users’ needs. SurveyJS works with React, Angular, Vue 3, and is compatible with any backend or auth system. Learn more.
surveyjs.io
featured