Skip to content

Commit 343c47b

Browse files
committed
update to latest csorma
1 parent 453a4fb commit 343c47b

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

src/csorma/README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ STUB: CSORMA version: 0.99.3-SQLCIPHER
102102
STUB: CSORMA SQLite version: 3.46.1
103103
STUB: CSORMA sqlcipher version: 4.6.1 community
104104
STUB: setting sqlcipher key. result = 0
105-
STUB: activating WAL mode. result = 0
105+
STUB: disabling WAL mode. result = 0
106106
STUB: creating table: Message
107107
STUB: res1: 0
108108
STUB: creating table: Friendlist
@@ -264,12 +264,6 @@ OrmaDatabase *o = OrmaDatabase_init(
264264
);
265265
```
266266

267-
now set the WAL mode:
268-
```C
269-
OrmaDatabase_set_wal_mode(o, true);
270-
);
271-
```
272-
273267
run a freehand SQL:
274268
```C
275269
char *sql1 = "CREATE TABLE IF NOT EXISTS Message ("

src/csorma/template/_csorma_stub1.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ int main()
3030
printf("STUB: setting sqlcipher key. result = %d\n", key_result);
3131

3232
// HINT: set WAL mode for a performance increase
33-
CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode(o, true);
34-
printf("STUB: activating WAL mode. result = %d\n", (int)res1);
33+
CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode(o, false);
34+
printf("STUB: disabling WAL mode. result = %d\n", (int)res1);

src/csorma/template/csorma_example.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ int main()
4343
printf("TEST: setting sqlcipher key. result = %d\n", r);
4444

4545
{
46-
CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode(o, true);
47-
printf("TEST: activating WAL mode. result = %d\n", (int)res1);
46+
CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode(o, false);
47+
printf("TEST: disabling WAL mode. result = %d\n", (int)res1);
4848
}
4949

5050
// ----------- freehand SQL to create TABLE -----------

src/csorma/template/csorma_test.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ int main()
170170
printf("TEST: setting sqlcipher key. result = %d\n", r);
171171

172172
{
173-
CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode(o, true);
174-
printf("TEST: activating WAL mode. result = %d\n", (int)res1);
173+
CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode(o, false);
174+
printf("TEST: disabling WAL mode. result = %d\n", (int)res1);
175175
}
176176

177177
// ----------- freehand SQL -----------

0 commit comments

Comments
 (0)