mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
As we've now switched over to using sqldb v2 for most of the db objects, we can remove a lot of deprecated code that's no longer used in the litd project. This commit removes that code.
22 lines
538 B
Go
22 lines
538 B
Go
package db
|
|
|
|
// QueriesTxOptions defines the set of db txn options the SQLQueries
|
|
// understands.
|
|
type QueriesTxOptions struct {
|
|
// readOnly governs if a read only transaction is needed or not.
|
|
readOnly bool
|
|
}
|
|
|
|
// ReadOnly returns true if the transaction should be read only.
|
|
//
|
|
// NOTE: This implements the TxOptions.
|
|
func (a *QueriesTxOptions) ReadOnly() bool {
|
|
return a.readOnly
|
|
}
|
|
|
|
// NewQueryReadTx creates a new read transaction option set.
|
|
func NewQueryReadTx() QueriesTxOptions {
|
|
return QueriesTxOptions{
|
|
readOnly: true,
|
|
}
|
|
}
|