sqlx-ts 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +4 -1
- package/sqlx-ts +0 -0
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ $ curl -LSfs https://jasonshin.github.io/sqlx-ts/install.sh | \
|
|
|
143
143
|
|
|
144
144
|
### sqlx-ts is not an ORM!
|
|
145
145
|
|
|
146
|
-
sqlx-ts supports **compile-time checked queries** and **generated types against SQLs**. It does not, however, do this by providing DSL (domain-specific language) for building queries. Instead, it provides
|
|
146
|
+
sqlx-ts supports **compile-time checked queries** and **generated types against SQLs**. It does not, however, do this by providing DSL (domain-specific language) for building queries. Instead, it provides a macro (almost) that take regular SQL as input and ensures that it is valid against the target database. The way it works is that sqlx-ts connects to your local or development database at compile-time and have database itself to verify the queries, also generate types based on information_schema. This can have many benefits that typical ORMs cannot provide
|
|
147
147
|
- Since sqlx-ts simply sends the queries back to the DB, almost any SQL syntax can be used in sqlx-ts (including things added by database extensions)
|
|
148
148
|
- You can easily optimize the queries as the SQLs are not built using a query-builder or an ORM interface
|
|
149
149
|
- The generated types work well with almost any database driver or even ORMs if they have good typescript support (that allows you to override input and output types)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sqlx-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "sqlx-ts ensures your raw SQLs are compile-time checked",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"maintainers": [
|
|
@@ -25,5 +25,8 @@
|
|
|
25
25
|
"jest": "^27.5.1",
|
|
26
26
|
"ts-jest": "^27.1.4",
|
|
27
27
|
"typescript": "^4.6.3"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=12"
|
|
28
31
|
}
|
|
29
32
|
}
|
package/sqlx-ts
CHANGED
|
Binary file
|