This helper assumes that there is a "data" column available, decodable with the provided codec
This helper assumes that there is a "data" column available, decodable with the provided codec
TODO: we should use an scala.Iterator instead
Several logical databases (channels, network, peers) may be stored in the same physical sqlite database.
Several logical databases (channels, network, peers) may be stored in the same physical sqlite database. We keep track of their respective version using a dedicated table. The version entry will be created if there is none but will never be updated here (use setVersion to do that).
Obtain an exclusive lock on a sqlite database.
Obtain an exclusive lock on a sqlite database. This is useful when we want to make sure that only one process accesses the database file (see https://www.sqlite.org/pragma.html).
The lock will be kept until the database is closed, or if the locking mode is explicitly reset.
Updates the version for a particular logical database, it will overwrite the previous version.
This helper makes sure statements are correctly closed.
This helper makes sure statements are correctly closed.
if set to true, all updates in the block will be run in a transaction.
(Since version ) see corresponding Javadoc for more information.