@libsql/core
Advanced tools
Comparing version 0.14.0 to 0.15.0-pre.1
@@ -117,2 +117,4 @@ "use strict"; | ||
syncInterval: config.syncInterval, | ||
readYourWrites: config.readYourWrites, | ||
offline: config.offline, | ||
fetch: config.fetch, | ||
@@ -135,2 +137,4 @@ authToken: undefined, | ||
syncInterval: config.syncInterval, | ||
readYourWrites: config.readYourWrites, | ||
offline: config.offline, | ||
fetch: config.fetch, | ||
@@ -137,0 +141,0 @@ }; |
@@ -19,2 +19,6 @@ /** Configuration object for {@link createClient}. */ | ||
syncInterval?: number; | ||
/** Read your writes */ | ||
readYourWrites?: boolean; | ||
/** Enable offline writes */ | ||
offline?: boolean; | ||
/** Enables or disables TLS for `libsql:` URLs. | ||
@@ -81,2 +85,3 @@ * | ||
execute(stmt: InStatement): Promise<ResultSet>; | ||
execute(sql: string, args?: InArgs): Promise<ResultSet>; | ||
/** Execute a batch of SQL statements in a transaction. | ||
@@ -115,3 +120,3 @@ * | ||
*/ | ||
batch(stmts: Array<InStatement>, mode?: TransactionMode): Promise<Array<ResultSet>>; | ||
batch(stmts: Array<InStatement | [string, InArgs?]>, mode?: TransactionMode): Promise<Array<ResultSet>>; | ||
/** Execute a batch of SQL statements in a transaction with PRAGMA foreign_keys=off; before and PRAGMA foreign_keys=on; after. | ||
@@ -434,3 +439,3 @@ * | ||
sql: string; | ||
args: InArgs; | ||
args?: InArgs; | ||
} | string; | ||
@@ -437,0 +442,0 @@ export type InArgs = Array<InValue> | Record<string, InValue>; |
@@ -12,2 +12,4 @@ import type { Config, IntMode } from "./api.js"; | ||
syncInterval: number | undefined; | ||
readYourWrites: boolean | undefined; | ||
offline: boolean | undefined; | ||
intMode: IntMode; | ||
@@ -14,0 +16,0 @@ fetch: Function | undefined; |
@@ -113,2 +113,4 @@ import { LibsqlError } from "./api.js"; | ||
syncInterval: config.syncInterval, | ||
readYourWrites: config.readYourWrites, | ||
offline: config.offline, | ||
fetch: config.fetch, | ||
@@ -131,4 +133,6 @@ authToken: undefined, | ||
syncInterval: config.syncInterval, | ||
readYourWrites: config.readYourWrites, | ||
offline: config.offline, | ||
fetch: config.fetch, | ||
}; | ||
} |
{ | ||
"name": "@libsql/core", | ||
"version": "0.14.0", | ||
"version": "0.15.0-pre.1", | ||
"keywords": [ | ||
@@ -16,3 +16,4 @@ "libsql", | ||
"type": "git", | ||
"url": "https://github.com/libsql/libsql-client-ts" | ||
"url": "git+https://github.com/libsql/libsql-client-ts", | ||
"directory": "packages/libsql-core" | ||
}, | ||
@@ -74,2 +75,3 @@ "authors": [ | ||
"build:esm": "tsc -p tsconfig.build-esm.json", | ||
"format:check": "prettier --check .", | ||
"postbuild": "cp package-cjs.json ./lib-cjs/package.json", | ||
@@ -76,0 +78,0 @@ "test": "jest --runInBand", |
48441
1181