@tursodatabase/serverless 1.1.2-pre.1 → 1.1.2
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/index.cjs +7 -3
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -870,9 +870,13 @@ var Connection = class {
|
|
|
870
870
|
if (!this.isOpen) {
|
|
871
871
|
throw new TypeError("The database connection is not open");
|
|
872
872
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
873
|
+
await this.execLock.acquire();
|
|
874
|
+
let description;
|
|
875
|
+
try {
|
|
876
|
+
description = await this.session.describe(sql);
|
|
877
|
+
} finally {
|
|
878
|
+
this.execLock.release();
|
|
879
|
+
}
|
|
876
880
|
const stmt = Statement.fromSession(this.session, sql, description.cols, this.execLock);
|
|
877
881
|
if (this.defaultSafeIntegerMode) {
|
|
878
882
|
stmt.safeIntegers(true);
|
package/dist/index.js
CHANGED
|
@@ -868,9 +868,13 @@ var Connection = class {
|
|
|
868
868
|
if (!this.isOpen) {
|
|
869
869
|
throw new TypeError("The database connection is not open");
|
|
870
870
|
}
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
871
|
+
await this.execLock.acquire();
|
|
872
|
+
let description;
|
|
873
|
+
try {
|
|
874
|
+
description = await this.session.describe(sql);
|
|
875
|
+
} finally {
|
|
876
|
+
this.execLock.release();
|
|
877
|
+
}
|
|
874
878
|
const stmt = Statement.fromSession(this.session, sql, description.cols, this.execLock);
|
|
875
879
|
if (this.defaultSafeIntegerMode) {
|
|
876
880
|
stmt.safeIntegers(true);
|