|
|
|
|
|
by matharmin
615 days ago
|
|
Just wondering, do you have a specific use case for read transactions implemented on the database level here? In SQLite in general read transactions are useful since you can access the same database from multiple processes at a time. Here, only a single process can access the database. So you can get the same effect as read transactions either by doing all reads in one synchronous function, or implement your own process-level locking. |
|
SQLite can have many readers and a single writer with WAL, so a many read transactions can exist whilst the writers move the db state forward.