@singlestore/client
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -141,5 +141,5 @@ import * as _singlestore_ai from '@singlestore/ai'; | ||
insert(data: Partial<T["columns"]> | Partial<T["columns"]>[]): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]][]>; | ||
select<U extends QueryBuilderArgs<T["columns"]>>(...args: U): Promise<[(ExtractQueryColumns<T["columns"], ExtractQueryOptions<U>> & { | ||
select<U extends QueryBuilderArgs<T["columns"]>>(...args: U): Promise<(ExtractQueryColumns<T["columns"], ExtractQueryOptions<U>> & { | ||
v_score: number; | ||
} & RowDataPacket)[], mysql2_promise.FieldPacket[]]>; | ||
} & RowDataPacket)[]>; | ||
update(data: Partial<T["columns"]>, filters: QueryFilters<T["columns"]>): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>; | ||
@@ -146,0 +146,0 @@ delete(filters: QueryFilters<T["columns"]>): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>; |
@@ -348,5 +348,8 @@ "use strict"; | ||
select(...args) { | ||
const { columns, clause, values } = new QueryBuilder(...args); | ||
const query = `SELECT ${columns} FROM ${this._path} ${clause}`; | ||
return this._connection.client.execute(query, values); | ||
return __async(this, null, function* () { | ||
const { columns, clause, values } = new QueryBuilder(...args); | ||
const query = `SELECT ${columns} FROM ${this._path} ${clause}`; | ||
const result = yield this._connection.client.execute(query, values); | ||
return result[0]; | ||
}); | ||
} | ||
@@ -353,0 +356,0 @@ update(data, filters) { |
{ | ||
"name": "@singlestore/client", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"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
125591
1175