query

package
v0.29.14 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	AccessToken         accessToken
	App                 app
	Cast                cast
	Character           character
	CharacterComment    characterComment
	CharacterSubjects   characterSubjects
	EpCollection        epCollection
	Episode             episode
	EpisodeComment      episodeComment
	Friend              friend
	Group               group
	GroupMember         groupMember
	GroupTopic          groupTopic
	GroupTopicComment   groupTopicComment
	Index               index
	IndexComment        indexComment
	IndexSubject        indexSubject
	Member              member
	Notification        notification
	NotificationField   notificationField
	OAuthClient         oAuthClient
	Person              person
	PersonComment       personComment
	PersonField         personField
	PersonSubjects      personSubjects
	PrivateMessage      privateMessage
	RevisionHistory     revisionHistory
	RevisionText        revisionText
	Subject             subject
	SubjectCollection   subjectCollection
	SubjectField        subjectField
	SubjectRelation     subjectRelation
	SubjectRevision     subjectRevision
	SubjectTopic        subjectTopic
	SubjectTopicComment subjectTopicComment
	TimeLine            timeLine
	UserGroup           userGroup
	WebSession          webSession
	// contains filtered or unexported fields
}

func Use

func Use(db *gorm.DB, opts ...gen.DOOption) *Query

func (*Query) Available

func (q *Query) Available() bool

func (*Query) Begin

func (q *Query) Begin(opts ...*sql.TxOptions) *QueryTx

func (*Query) ReadDB added in v0.27.13

func (q *Query) ReadDB() *Query

func (*Query) ReplaceDB added in v0.27.13

func (q *Query) ReplaceDB(db *gorm.DB) *Query

func (*Query) Transaction

func (q *Query) Transaction(fc func(tx *Query) error, opts ...*sql.TxOptions) error

func (*Query) WithContext

func (q *Query) WithContext(ctx context.Context) *queryCtx

func (*Query) WriteDB added in v0.27.13

func (q *Query) WriteDB() *Query

type QueryTx

type QueryTx struct{ *Query }

func (*QueryTx) Commit

func (q *QueryTx) Commit() error

func (*QueryTx) Rollback

func (q *QueryTx) Rollback() error

func (*QueryTx) RollbackTo

func (q *QueryTx) RollbackTo(name string) error

func (*QueryTx) SavePoint

func (q *QueryTx) SavePoint(name string) error

Jump to

Keyboard shortcuts

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