@sqb/builder 4.9.0 → 4.9.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/cjs/enums.js CHANGED
@@ -11,7 +11,7 @@ var JoinType;
11
11
  JoinType["OUTER"] = "outer";
12
12
  JoinType["FULL_OUTER"] = "full outer";
13
13
  JoinType["CROSS"] = "cross";
14
- })(JoinType = exports.JoinType || (exports.JoinType = {}));
14
+ })(JoinType || (exports.JoinType = JoinType = {}));
15
15
  var SerializationType;
16
16
  (function (SerializationType) {
17
17
  SerializationType["SELECT_QUERY"] = "select_query";
@@ -54,7 +54,7 @@ var SerializationType;
54
54
  SerializationType["NUMBER_VALUE"] = "number_value";
55
55
  SerializationType["EXTERNAL_PARAMETER"] = "external_parameter";
56
56
  SerializationType["ARRAY"] = "array";
57
- })(SerializationType = exports.SerializationType || (exports.SerializationType = {}));
57
+ })(SerializationType || (exports.SerializationType = SerializationType = {}));
58
58
  var OperatorType;
59
59
  (function (OperatorType) {
60
60
  OperatorType["and"] = "and";
@@ -78,7 +78,7 @@ var OperatorType;
78
78
  OperatorType["exists"] = "exists";
79
79
  OperatorType["notExists"] = "notExists";
80
80
  OperatorType["not"] = "not";
81
- })(OperatorType = exports.OperatorType || (exports.OperatorType = {}));
81
+ })(OperatorType || (exports.OperatorType = OperatorType = {}));
82
82
  var DataType;
83
83
  (function (DataType) {
84
84
  DataType["BOOL"] = "BOOL";
@@ -98,4 +98,4 @@ var DataType;
98
98
  DataType["TEXT"] = "TEXT";
99
99
  DataType["GUID"] = "GUID";
100
100
  DataType["JSON"] = "JSON";
101
- })(DataType = exports.DataType || (exports.DataType = {}));
101
+ })(DataType || (exports.DataType = DataType = {}));
@@ -1,6 +1,5 @@
1
1
  import { SelectQuery } from './query/select-query.js';
2
2
  import { Serializable } from './serializable.js';
3
- import { Operator } from './sql-objects/operator.js';
4
3
  import { OpAnd } from './sql-objects/operators/op-and.js';
5
4
  import { OpEq } from './sql-objects/operators/op-eq.js';
6
5
  import { OpExists } from './sql-objects/operators/op-exists.js';
@@ -20,17 +19,18 @@ import { OpNotILike } from './sql-objects/operators/op-not-ilike.js';
20
19
  import { OpNotIn } from './sql-objects/operators/op-not-in.js';
21
20
  import { OpNotLike } from './sql-objects/operators/op-not-like.js';
22
21
  import { OpOr } from './sql-objects/operators/op-or.js';
23
- import { RawStatement } from './sql-objects/raw-statement.js';
24
- declare function And(...args: (Operator | RawStatement)[]): OpAnd;
25
- declare function Or(...args: (Operator | RawStatement)[]): OpOr;
22
+ declare function And(...args: (Serializable | Object)[]): OpAnd;
23
+ declare function Or(...args: (Serializable | Object)[]): OpOr;
26
24
  declare function Eq(expression: string | Serializable, value: any): OpEq;
27
25
  declare function Ne(expression: string | Serializable, value: any): OpNe;
28
26
  declare function Gt(expression: string | Serializable, value: any): OpGt;
29
27
  declare function Gte(expression: string | Serializable, value: any): OpGte;
30
28
  declare function Lt(expression: string | Serializable, value: any): OpLt;
31
29
  declare function Lte(expression: string | Serializable, value: any): OpLte;
30
+ declare function Between(expression: string | Serializable, values: Serializable): any;
32
31
  declare function Between(expression: string | Serializable, values: any[]): any;
33
32
  declare function Between(expression: string | Serializable, value1: any, value2: any): any;
33
+ declare function NotBetween(expression: string | Serializable, values: Serializable): any;
34
34
  declare function NotBetween(expression: string | Serializable, values: any[]): any;
35
35
  declare function NotBetween(expression: string | Serializable, value1: any, value2: any): any;
36
36
  declare function In(expression: string | Serializable, value: any): OpIn;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/builder",
3
3
  "description": "Extensible multi-dialect SQL query builder written with TypeScript",
4
- "version": "4.9.0",
4
+ "version": "4.9.1",
5
5
  "author": "Panates",
6
6
  "private": false,
7
7
  "contributors": [
@@ -37,7 +37,7 @@
37
37
  "putil-varhelpers": "^1.6.5"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/debug": "^4.1.7"
40
+ "@types/debug": "^4.1.8"
41
41
  },
42
42
  "type": "module",
43
43
  "types": "esm/index.d.ts",