Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormBase ¶
type GormBase struct {
// contains filtered or unexported fields
}
func (*GormBase) Environments ¶
func (g *GormBase) Environments() environment.Repository
type GormDB ¶
type GormDB struct { GormBase // contains filtered or unexported fields }
func (*GormDB) BeginTransaction ¶
func (g *GormDB) BeginTransaction() (application.Transaction, error)
func (*GormDB) SetTransactionIsolationLevel ¶
func (g *GormDB) SetTransactionIsolationLevel(level TXIsoLevel) error
See https://www.postgresql.org/docs/9.3/static/sql-set-transaction.html
type GormTransaction ¶
type GormTransaction struct {
GormBase
}
func (*GormTransaction) Commit ¶
func (g *GormTransaction) Commit() error
func (*GormTransaction) Rollback ¶
func (g *GormTransaction) Rollback() error
type TXIsoLevel ¶
type TXIsoLevel int8
const ( TXIsoLevelDefault TXIsoLevel = iota TXIsoLevelReadCommitted TXIsoLevelRepeatableRead TXIsoLevelSerializable )
Click to show internal directories.
Click to hide internal directories.