@sqb/mssql-dialect 4.19.4 → 4.19.6
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 +7 -7
- package/cjs/ms-sql-serializer.js +1 -1
- package/esm/ms-sql-serializer.js +2 -2
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ SQB is an extensible, multi-dialect SQL query builder and Database connection wr
|
|
|
18
18
|
|
|
19
19
|
## Main goals
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
21
|
+
- Single code base for any sql based database
|
|
22
|
+
- Powerful and simplified query coding scheme
|
|
23
|
+
- Fast applications with low memory requirements
|
|
24
|
+
- Let applications work with large data tables efficiently
|
|
25
|
+
- Support latest JavaScript language standards
|
|
26
|
+
- Lightweight and extensible framework.
|
|
27
27
|
|
|
28
28
|
You can report bugs and discuss features on the [GitHub issues](https://github.com/sqbjs/sqb/issues) page
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ $ npm install @sqb/mssql-dialect --save
|
|
|
39
39
|
|
|
40
40
|
## Node Compatibility
|
|
41
41
|
|
|
42
|
-
-
|
|
42
|
+
- node >= 16.x
|
|
43
43
|
|
|
44
44
|
### License
|
|
45
45
|
|
package/cjs/ms-sql-serializer.js
CHANGED
|
@@ -8,7 +8,7 @@ class MSSqlSerializer {
|
|
|
8
8
|
this.dialect = 'mssql';
|
|
9
9
|
}
|
|
10
10
|
isReservedWord(ctx, s) {
|
|
11
|
-
return s && typeof s === 'string' && reservedWords.includes(s.toLowerCase());
|
|
11
|
+
return (s && typeof s === 'string' && reservedWords.includes(s.toLowerCase()));
|
|
12
12
|
}
|
|
13
13
|
serialize(ctx, type, o, defFn) {
|
|
14
14
|
switch (type) {
|
package/esm/ms-sql-serializer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SerializationType } from '@sqb/builder';
|
|
1
|
+
import { SerializationType, } from '@sqb/builder';
|
|
2
2
|
const reservedWords = ['comment'];
|
|
3
3
|
export class MSSqlSerializer {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.dialect = 'mssql';
|
|
6
6
|
}
|
|
7
7
|
isReservedWord(ctx, s) {
|
|
8
|
-
return s && typeof s === 'string' && reservedWords.includes(s.toLowerCase());
|
|
8
|
+
return (s && typeof s === 'string' && reservedWords.includes(s.toLowerCase()));
|
|
9
9
|
}
|
|
10
10
|
serialize(ctx, type, o, defFn) {
|
|
11
11
|
switch (type) {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/mssql-dialect",
|
|
3
3
|
"description": "SQB serialization extension for MS-SQL database",
|
|
4
|
-
"version": "4.19.
|
|
4
|
+
"version": "4.19.6",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"tslib": "^2.8.
|
|
8
|
+
"tslib": "^2.8.1"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@sqb/builder": "^4.19.
|
|
11
|
+
"@sqb/builder": "^4.19.6"
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
@@ -58,5 +58,8 @@
|
|
|
58
58
|
"dialect",
|
|
59
59
|
"serializer",
|
|
60
60
|
"database"
|
|
61
|
-
]
|
|
61
|
+
],
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
}
|
|
62
65
|
}
|