# Functions
Batch is an iterator for batches of records.
NewLeaseLock creates a "leaseLock" - an entity that tries to take an exclusive lease on the database.
NewLockedDB creates a new instance of LockedDB.
OpenUnlockedDB just opens DB connection, without any DB locks.
# Constants
BatchSize is the default number of DB records to access in one batch.
# Interfaces
LeaseLock handles taking an exclusive lease on database access.
LockedDB bounds DB connection and DB locks.
Queryer is deprecated.
# Type aliases
BatchFunc is the function to execute on each batch of records, should return the count of records affected.