MCPcopy Index your code
hub / github.com/coder/coder / InTx

Method InTx

enterprise/dbcrypt/dbcrypt.go:64–72  ·  view source on GitHub ↗
(function func(database.Store) error, txOpts *database.TxOptions)

Source from the content-addressed store, hash-verified

62}
63
64func (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
74func (db *dbCrypt) GetDBCryptKeys(ctx context.Context) ([]database.DBCryptKey, error) {
75 ks, err := db.Store.GetDBCryptKeys(ctx)

Callers 1

ensureEncryptedMethod · 0.95

Calls 1

InTxMethod · 0.65

Tested by

no test coverage detected