libsql-stateless-easy
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -1,4 +0,2 @@ | ||
import type { libsqlBatchReqStepExecCond } from "libsql-stateless"; | ||
import type { TransactionMode, rawSQLStatement, libsqlConfig, intMode } from "./types.js"; | ||
import type { ____Transaction } from "./extras.js"; | ||
declare class libsqlClient { | ||
@@ -71,4 +69,3 @@ private readonly conf; | ||
batch(steps: Array<rawSQLStatement>, mode?: TransactionMode): Promise<import("./types.js").ResultSet[]>; | ||
batchPrimitive(steps: Array<rawSQLStatement>, step_conditions: Array<libsqlBatchReqStepExecCond | null | undefined>): Promise<(import("./types.js").ResultSet | null)[]>; | ||
transaction(mode?: TransactionMode): Promise<____Transaction>; | ||
transaction(mode?: TransactionMode): Promise<any>; | ||
/** Execute a sequence of SQL statements separated by semicolons. | ||
@@ -75,0 +72,0 @@ * |
@@ -1,2 +0,2 @@ | ||
import { CheckHttpUrl, libsqlBatch, libsqlBatchTransaction, libsqlExecute, libsqlExecuteMultiple, libsqlServerCompatCheck } from "./functions.js"; | ||
import { CheckHttpUrl, libsqlBatchTransaction, libsqlExecute, libsqlExecuteMultiple, libsqlServerCompatCheck } from "./functions.js"; | ||
import { InternalError } from "./errors.js"; | ||
@@ -70,7 +70,10 @@ class libsqlClient { | ||
} | ||
async batchPrimitive(steps, step_conditions) { | ||
return await libsqlBatch(this.conf, steps, step_conditions); | ||
} | ||
// public async batchPrimitive( | ||
// steps: Array<rawSQLStatement>, | ||
// step_conditions: Array<libsqlBatchReqStepExecCond|null|undefined> | ||
// ) { | ||
// return await libsqlBatch(this.conf, steps, step_conditions); | ||
// } | ||
// @ts-ignore | ||
async transaction(mode) { | ||
if (mode) { } | ||
throw new InternalError("'libsql-stateless' is stateless and does not support interactive transactions. Use this.batch() instead."); | ||
@@ -77,0 +80,0 @@ } |
{ | ||
"name": "libsql-stateless-easy", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"homepage": "https://github.com/DaBigBlob/libsql-stateless-easy#readme", | ||
@@ -56,3 +56,2 @@ "repository": { | ||
"clean": "npm run prebuild", | ||
"build:clean": "npm run clean && npm run build", | ||
"prod": "npm publish && npm run clean" | ||
@@ -59,0 +58,0 @@ }, |
@@ -93,4 +93,4 @@ # libsql-stateless-easy | ||
``` | ||
## API Level | ||
> NOTE: current API level is that of latest stable [libsql-stateless](https://github.com/DaBigBlob/libsql-stateless). | ||
Read [this section](https://github.com/DaBigBlob/libsql-stateless/?tab=readme-ov-file#api-level). |
38424
17
774