@entifix/sql 0.1.0 → 0.1.1
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 +21 -0
- package/package.json +5 -4
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @entifix/sql
|
|
2
|
+
|
|
3
|
+
The SQL adapter, over `@effect/sql`. `makeSqlRepository` implements the `EntityRepository` port from `@entifix/business` and translates an RSQL filter and sort into parameterised SQL — values are bound, never interpolated, and `LIKE` patterns are escaped.
|
|
4
|
+
|
|
5
|
+
Bring the `@effect/sql` driver for your database and provide its `SqlClient`; this package does not choose one.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @entifix/sql effect
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Entry points
|
|
14
|
+
|
|
15
|
+
| Import | What it holds |
|
|
16
|
+
| -------------- | --------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `@entifix/sql` | `makeSqlRepository`, `translateFiltering`, `translateSorting`, `escapeLikePattern`, `SqlHealthProbeLayer` |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
Tier 2 (adapters) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entifix/sql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "SQL adapter over @effect/sql: an entity repository with RSQL filter and sort translation, and a health probe.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -56,12 +57,12 @@
|
|
|
56
57
|
"dependencies": {
|
|
57
58
|
"@effect/sql": "0.52.1",
|
|
58
59
|
"@swc/helpers": "0.5.23",
|
|
59
|
-
"@entifix/business": "0.1.
|
|
60
|
-
"@entifix/core": "0.1.
|
|
60
|
+
"@entifix/business": "0.1.1",
|
|
61
|
+
"@entifix/core": "0.1.1"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"effect": "3.22.1",
|
|
64
|
-
"@entifix/testing-unit": "0.1.
|
|
65
|
+
"@entifix/testing-unit": "0.1.1"
|
|
65
66
|
},
|
|
66
67
|
"peerDependencies": {
|
|
67
68
|
"effect": ">=3.22 <4"
|