We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84cfa28 commit 95dd3b3Copy full SHA for 95dd3b3
core-tests-android/src/androidTest/java/com/powersync/AndroidDatabaseTest.kt
@@ -224,11 +224,12 @@ class AndroidDatabaseTest {
224
}
225
226
@Test
227
- fun canCreateTemporaryTable() = runTest {
+ fun canUseTempStore() = runTest {
228
database.execute("PRAGMA temp_store = 1;") // Store temporary data as files
229
- database.execute("CREATE TEMP TABLE my_tbl (content ANY) STRICT;")
230
- for (i in 0..128) {
231
- database.execute("INSERT INTO my_tbl VALUES (randomblob(1024 * 1024))")
+ database.execute("CREATE TEMP TABLE foo (bar TEXT);")
+ val data = "new row".repeat(100);
+ for (i in 0..10000) {
232
+ database.execute("INSERT INTO foo VALUES (?)", parameters = listOf(data))
233
234
235
0 commit comments