MCPcopy Create free account
hub / github.com/lib/pq / isInTransaction

Method isInTransaction

conn.go:464–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

462}
463
464func (cn *conn) isInTransaction() bool {
465 return cn.txnStatus == txnStatusIdleInTransaction ||
466 cn.txnStatus == txnStatusInFailedTransaction
467}
468
469func (cn *conn) checkIsInTransaction(intxn bool) error {
470 if cn.isInTransaction() != intxn {

Callers 4

prepareCopyInMethod · 0.95
checkIsInTransactionMethod · 0.95
CommitMethod · 0.95
rollbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected