qlcodes 1.1.0 → 1.1.2
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 +8 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# QLCodes
|
|
2
2
|
|
|
3
|
-
A small utility that unifies SQL
|
|
3
|
+
A small utility that unifies SQL codes describing states (SQLSTATE) from different DBMS into a single, normalized structure through a curated dataset constructed at build time.
|
|
4
4
|
|
|
5
5
|
The module is built from authoritative vendor documentation (IBM, PostgreSQL, Oracle) and generates static reference data at build time. Find references bellow.
|
|
6
6
|
|
|
@@ -32,9 +32,9 @@ $ npm install qlcodes
|
|
|
32
32
|
```js
|
|
33
33
|
import { lens } from "qlcodes";
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const state = lens("42501");
|
|
36
36
|
|
|
37
|
-
console.log(
|
|
37
|
+
console.log(state);
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
Output :
|
|
@@ -118,7 +118,7 @@ Output:
|
|
|
118
118
|
`lens(code: string): QLLens`
|
|
119
119
|
|Parameters|Returns|
|
|
120
120
|
|-|-|
|
|
121
|
-
|**code** SQLSTATE
|
|
121
|
+
|**code** SQLSTATE status code | A structured status description|
|
|
122
122
|
|| **code** — normalized SQLSTATE, or `-1` if not found
|
|
123
123
|
|| **keys** — semantic identifiers
|
|
124
124
|
|| **use** — `DBMS` where the code is applicable
|
|
@@ -135,7 +135,7 @@ If you want to extend or adjust the reference data:
|
|
|
135
135
|
1) Clone the repository
|
|
136
136
|
|
|
137
137
|
```bash
|
|
138
|
-
$ git clone
|
|
138
|
+
$ git clone https://github.com/ManuUseGitHub/QLCodes.git
|
|
139
139
|
$ cd qlcodes
|
|
140
140
|
$ npm install
|
|
141
141
|
```
|
|
@@ -166,6 +166,9 @@ You may pass argument to the build script to enforce a few behaviours to help yo
|
|
|
166
166
|
|
|
167
167
|
Use your customized build via a local dependency or a forked package.
|
|
168
168
|
|
|
169
|
+
---
|
|
170
|
+
## Showcase
|
|
171
|
+
[in stackblitz](https://stackblitz.com/edit/stackblitz-starters-vjcs3q7x?file=index.js)
|
|
169
172
|
---
|
|
170
173
|
|
|
171
174
|
## License
|