Static Methodgrdb 7.3.0GRDB
custom(_:)
Returns a custom clock.
static func custom(_ now: @escaping (Database) throws -> Date) -> Self
The provided closure is called whenever a transaction starts - precisely speaking, whenever the database connection leaves the auto-commit mode.
It is also called when the transactionDate
property is called, and the database connection is not in a transaction.