gormapp

package
v0.0.0-...-02d1e04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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) DB

func (g *GormBase) DB() *gorm.DB

func (*GormBase) Environments

func (g *GormBase) Environments() environment.Repository

type GormDB

type GormDB struct {
	GormBase
	// contains filtered or unexported fields
}

func NewGormDB

func NewGormDB(db *gorm.DB) *GormDB

func (*GormDB) BeginTransaction

func (g *GormDB) BeginTransaction() (application.Transaction, error)

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL