@singlestore/client
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -91,2 +91,3 @@ import * as _singlestore_ai from '@singlestore/ai'; | ||
limit?: number; | ||
offset?: number; | ||
}; | ||
@@ -96,7 +97,3 @@ declare class QueryOptionsBuilder<T extends QuerySchema> { | ||
columns: string; | ||
clauses: { | ||
groupBy: string; | ||
orderBy: string; | ||
limit: string; | ||
}; | ||
clauses: Record<Exclude<keyof QueryOptions, "columns">, string>; | ||
constructor(options?: QueryOptions<T> | undefined); | ||
@@ -107,2 +104,3 @@ private _buildColumnsClause; | ||
private _buildLimitClause; | ||
private _buildOffsetClause; | ||
} | ||
@@ -186,3 +184,3 @@ | ||
template?: string; | ||
} & _O, "prompt" | "vColumn" | "template" | "systemRole"> & { | ||
} & _O, "systemRole" | "prompt" | "vColumn" | "template"> & { | ||
systemRole: string; | ||
@@ -193,3 +191,3 @@ } extends infer T_1 ? T_1 extends Omit<{ | ||
template?: string; | ||
} & _O, "prompt" | "vColumn" | "template" | "systemRole"> & { | ||
} & _O, "systemRole" | "prompt" | "vColumn" | "template"> & { | ||
systemRole: string; | ||
@@ -196,0 +194,0 @@ } ? T_1 extends { |
@@ -235,3 +235,4 @@ "use strict"; | ||
orderBy: "", | ||
limit: "" | ||
limit: "", | ||
offset: "" | ||
}; | ||
@@ -242,3 +243,4 @@ this.columns = this._buildColumnsClause(options == null ? void 0 : options.columns); | ||
orderBy: this._buildOrderByClause(options == null ? void 0 : options.orderBy), | ||
limit: this._buildLimitClause(options == null ? void 0 : options.limit) | ||
limit: this._buildLimitClause(options == null ? void 0 : options.limit), | ||
offset: this._buildOffsetClause(options == null ? void 0 : options.offset) | ||
}; | ||
@@ -260,2 +262,5 @@ } | ||
} | ||
_buildOffsetClause(offset) { | ||
return offset ? `OFFSET ${offset}` : ""; | ||
} | ||
}; | ||
@@ -271,3 +276,4 @@ | ||
orderBy: "", | ||
limit: "" | ||
limit: "", | ||
offset: "" | ||
}; | ||
@@ -274,0 +280,0 @@ this.values = []; |
{ | ||
"name": "@singlestore/client", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154690
1432