supalite 0.5.2 → 0.5.3
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/dist/query-builder.d.ts +2 -0
- package/dist/query-builder.js +10 -0
- package/package.json +1 -1
package/dist/query-builder.d.ts
CHANGED
|
@@ -41,7 +41,9 @@ export declare class QueryBuilder<T extends DatabaseSchema, S extends SchemaName
|
|
|
41
41
|
not(column: string, operator: string, value: any): this;
|
|
42
42
|
contains(column: string, value: any): this;
|
|
43
43
|
in(column: string, values: any[]): this;
|
|
44
|
+
gt(column: string, value: any): this;
|
|
44
45
|
gte(column: string, value: any): this;
|
|
46
|
+
lt(column: string, value: any): this;
|
|
45
47
|
lte(column: string, value: any): this;
|
|
46
48
|
order(column: string, options?: {
|
|
47
49
|
ascending?: boolean;
|
package/dist/query-builder.js
CHANGED
|
@@ -122,11 +122,21 @@ class QueryBuilder {
|
|
|
122
122
|
this.whereValues.push(...values);
|
|
123
123
|
return this;
|
|
124
124
|
}
|
|
125
|
+
gt(column, value) {
|
|
126
|
+
this.whereConditions.push(`"${column}" > $${this.whereValues.length + 1}`);
|
|
127
|
+
this.whereValues.push(value);
|
|
128
|
+
return this;
|
|
129
|
+
}
|
|
125
130
|
gte(column, value) {
|
|
126
131
|
this.whereConditions.push(`"${column}" >= $${this.whereValues.length + 1}`);
|
|
127
132
|
this.whereValues.push(value);
|
|
128
133
|
return this;
|
|
129
134
|
}
|
|
135
|
+
lt(column, value) {
|
|
136
|
+
this.whereConditions.push(`"${column}" < $${this.whereValues.length + 1}`);
|
|
137
|
+
this.whereValues.push(value);
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
130
140
|
lte(column, value) {
|
|
131
141
|
this.whereConditions.push(`"${column}" <= $${this.whereValues.length + 1}`);
|
|
132
142
|
this.whereValues.push(value);
|