@tursodatabase/database 0.5.0-pre.4 → 0.5.0-pre.6

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.
@@ -78,10 +78,10 @@ test('attach', () => {
78
78
  const path1 = `test-${(Math.random() * 10000) | 0}.db`;
79
79
  const path2 = `test-${(Math.random() * 10000) | 0}.db`;
80
80
  try {
81
- const db1 = new Database(path1);
81
+ const db1 = new Database(path1, { experimental: ["attach"] });
82
82
  db1.exec("CREATE TABLE t(x)");
83
83
  db1.exec("INSERT INTO t VALUES (1), (2), (3)");
84
- const db2 = new Database(path2);
84
+ const db2 = new Database(path2, { experimental: ["attach"] });
85
85
  db2.exec("CREATE TABLE q(x)");
86
86
  db2.exec("INSERT INTO q VALUES (4), (5), (6)");
87
87
  db1.exec(`ATTACH '${path2}' as secondary`);
@@ -165,10 +165,10 @@ test('attach', async () => {
165
165
  const path1 = `test-${(Math.random() * 10000) | 0}.db`;
166
166
  const path2 = `test-${(Math.random() * 10000) | 0}.db`;
167
167
  try {
168
- const db1 = await connect(path1);
168
+ const db1 = await connect(path1, { experimental: ["attach"] });
169
169
  await db1.exec("CREATE TABLE t(x)");
170
170
  await db1.exec("INSERT INTO t VALUES (1), (2), (3)");
171
- const db2 = await connect(path2);
171
+ const db2 = await connect(path2, { experimental: ["attach"] });
172
172
  await db2.exec("CREATE TABLE q(x)");
173
173
  await db2.exec("INSERT INTO q VALUES (4), (5), (6)");
174
174
  await db1.exec(`ATTACH '${path2}' as secondary`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tursodatabase/database",
3
- "version": "0.5.0-pre.4",
3
+ "version": "0.5.0-pre.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/tursodatabase/turso"
@@ -47,15 +47,15 @@
47
47
  ]
48
48
  },
49
49
  "dependencies": {
50
- "@tursodatabase/database-common": "^0.5.0-pre.4"
50
+ "@tursodatabase/database-common": "^0.5.0-pre.6"
51
51
  },
52
52
  "imports": {
53
53
  "#index": "./index.js"
54
54
  },
55
55
  "optionalDependencies": {
56
- "@tursodatabase/database-linux-x64-gnu": "0.5.0-pre.4",
57
- "@tursodatabase/database-win32-x64-msvc": "0.5.0-pre.4",
58
- "@tursodatabase/database-darwin-arm64": "0.5.0-pre.4",
59
- "@tursodatabase/database-linux-arm64-gnu": "0.5.0-pre.4"
56
+ "@tursodatabase/database-linux-x64-gnu": "0.5.0-pre.6",
57
+ "@tursodatabase/database-win32-x64-msvc": "0.5.0-pre.6",
58
+ "@tursodatabase/database-darwin-arm64": "0.5.0-pre.6",
59
+ "@tursodatabase/database-linux-arm64-gnu": "0.5.0-pre.6"
60
60
  }
61
61
  }