(function func(database.Store) error, txOpts *database.TxOptions)
| 62 | } |
| 63 | |
| 64 | func (db *dbCrypt) InTx(function func(database.Store) error, txOpts *database.TxOptions) error { |
| 65 | return db.Store.InTx(func(s database.Store) error { |
| 66 | return function(&dbCrypt{ |
| 67 | primaryCipherDigest: db.primaryCipherDigest, |
| 68 | ciphers: db.ciphers, |
| 69 | Store: s, |
| 70 | }) |
| 71 | }, txOpts) |
| 72 | } |
| 73 | |
| 74 | func (db *dbCrypt) GetDBCryptKeys(ctx context.Context) ([]database.DBCryptKey, error) { |
| 75 | ks, err := db.Store.GetDBCryptKeys(ctx) |