Documentation ¶
Overview ¶
Package gormapplication contains the code in charge of managing CRUD operations over all the defined objects in our gorm database.
Index ¶
- type GormBase
- func (g *GormBase) Areas() area.Repository
- func (g *GormBase) Codebases() codebase.Repository
- func (g *GormBase) Comments() comment.Repository
- func (g *GormBase) DB() *gorm.DB
- func (g *GormBase) Identities() account.IdentityRepository
- func (g *GormBase) Iterations() iteration.Repository
- func (g *GormBase) Labels() label.Repository
- func (g *GormBase) Queries() query.Repository
- func (g *GormBase) SearchItems() application.SearchRepository
- func (g *GormBase) SpaceTemplates() spacetemplate.Repository
- func (g *GormBase) Spaces() space.Repository
- func (g *GormBase) TrackerQueries() remoteworkitem.TrackerQueryRepository
- func (g *GormBase) Trackers() remoteworkitem.TrackerRepository
- func (g *GormBase) Users() account.UserRepository
- func (g *GormBase) WorkItemLinkCategories() link.WorkItemLinkCategoryRepository
- func (g *GormBase) WorkItemLinkTypes() link.WorkItemLinkTypeRepository
- func (g *GormBase) WorkItemLinks() link.WorkItemLinkRepository
- func (g *GormBase) WorkItemTypeGroups() workitem.WorkItemTypeGroupRepository
- func (g *GormBase) WorkItemTypes() workitem.WorkItemTypeRepository
- func (g *GormBase) WorkItems() workitem.WorkItemRepository
- type GormDB
- type GormTransaction
- type TXIsoLevel
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
}
GormBase is a base struct for gorm implementations of db & transaction
func (*GormBase) Codebases ¶
func (g *GormBase) Codebases() codebase.Repository
Codebases returns a codebase repository
func (*GormBase) Comments ¶
func (g *GormBase) Comments() comment.Repository
Comments returns a work item comments repository
func (*GormBase) Identities ¶
func (g *GormBase) Identities() account.IdentityRepository
Identities creates new Identity repository
func (*GormBase) Iterations ¶
func (g *GormBase) Iterations() iteration.Repository
Iterations returns a iteration repository
func (*GormBase) Labels ¶
func (g *GormBase) Labels() label.Repository
Labels returns a labels repository
func (*GormBase) Queries ¶
func (g *GormBase) Queries() query.Repository
Queries returns a queries repository
func (*GormBase) SearchItems ¶
func (g *GormBase) SearchItems() application.SearchRepository
func (*GormBase) SpaceTemplates ¶
func (g *GormBase) SpaceTemplates() spacetemplate.Repository
SpaceTemplates returns a space template repository
func (*GormBase) Spaces ¶
func (g *GormBase) Spaces() space.Repository
func (*GormBase) TrackerQueries ¶
func (g *GormBase) TrackerQueries() remoteworkitem.TrackerQueryRepository
func (*GormBase) Trackers ¶
func (g *GormBase) Trackers() remoteworkitem.TrackerRepository
func (*GormBase) Users ¶
func (g *GormBase) Users() account.UserRepository
Users creates new user repository
func (*GormBase) WorkItemLinkCategories ¶
func (g *GormBase) WorkItemLinkCategories() link.WorkItemLinkCategoryRepository
WorkItemLinkCategories returns a work item link category repository
func (*GormBase) WorkItemLinkTypes ¶
func (g *GormBase) WorkItemLinkTypes() link.WorkItemLinkTypeRepository
WorkItemLinkTypes returns a work item link type repository
func (*GormBase) WorkItemLinks ¶
func (g *GormBase) WorkItemLinks() link.WorkItemLinkRepository
WorkItemLinks returns a work item link repository
func (*GormBase) WorkItemTypeGroups ¶
func (g *GormBase) WorkItemTypeGroups() workitem.WorkItemTypeGroupRepository
WorkItemTypeGroups returns a work item type group repository
func (*GormBase) WorkItemTypes ¶
func (g *GormBase) WorkItemTypes() workitem.WorkItemTypeRepository
func (*GormBase) WorkItems ¶
func (g *GormBase) WorkItems() workitem.WorkItemRepository
type GormDB ¶
type GormDB struct { GormBase // contains filtered or unexported fields }
func (*GormDB) BeginTransaction ¶
func (g *GormDB) BeginTransaction() (application.Transaction, error)
Begin implements TransactionSupport
func (*GormDB) SetTransactionIsolationLevel ¶
func (g *GormDB) SetTransactionIsolationLevel(level TXIsoLevel) error
SetTransactionIsolationLevel sets the isolation level for See also 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
Commit implements TransactionSupport
func (*GormTransaction) Rollback ¶
func (g *GormTransaction) Rollback() error
Rollback implements TransactionSupport
type TXIsoLevel ¶
type TXIsoLevel int8
A TXIsoLevel specifies the characteristics of the transaction See https://www.postgresql.org/docs/9.3/static/sql-set-transaction.html
const ( // TXIsoLevelDefault doesn't specify any transaction isolation level, instead the connection // based setting will be used. TXIsoLevelDefault TXIsoLevel = iota // TXIsoLevelReadCommitted means "A statement can only see rows committed before it began. This is the default." TXIsoLevelReadCommitted // TXIsoLevelRepeatableRead means "All statements of the current transaction can only see rows committed before the // first query or data-modification statement was executed in this transaction." TXIsoLevelRepeatableRead // TXIsoLevelSerializable means "All statements of the current transaction can only see rows committed // before the first query or data-modification statement was executed in this transaction. // If a pattern of reads and writes among concurrent serializable transactions would create a // situation which could not have occurred for any serial (one-at-a-time) execution of those // transactions, one of them will be rolled back with a serialization_failure error." TXIsoLevelSerializable )