query

package
v1.9.10-0...-1ccd1c0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Q                        = new(Query)
	AcmeUser                 *acmeUser
	AuthToken                *authToken
	AutoBackup               *autoBackup
	BanIP                    *banIP
	Cert                     *cert
	Config                   *config
	ConfigBackup             *configBackup
	DnsCredential            *dnsCredential
	DnsDomain                *dnsDomain
	ExternalNotify           *externalNotify
	LLMSession               *lLMSession
	MCPServiceToken          *mCPServiceToken
	Namespace                *namespace
	NginxLogIndex            *nginxLogIndex
	Node                     *node
	NodeControllerCredential *nodeControllerCredential
	NodeCredential           *nodeCredential
	Notification             *notification
	Passkey                  *passkey
	Site                     *site
	SiteConfig               *siteConfig
	SiteHealthAlertState     *siteHealthAlertState
	Stream                   *stream
	UpstreamConfig           *upstreamConfig
	User                     *user
)

Functions

func Init

func Init(db *gorm.DB)

func SetDefault

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

Types

type Query

type Query struct {
	AcmeUser                 acmeUser
	AuthToken                authToken
	AutoBackup               autoBackup
	BanIP                    banIP
	Cert                     cert
	Config                   config
	ConfigBackup             configBackup
	DnsCredential            dnsCredential
	DnsDomain                dnsDomain
	ExternalNotify           externalNotify
	LLMSession               lLMSession
	MCPServiceToken          mCPServiceToken
	Namespace                namespace
	NginxLogIndex            nginxLogIndex
	Node                     node
	NodeControllerCredential nodeControllerCredential
	NodeCredential           nodeCredential
	Notification             notification
	Passkey                  passkey
	Site                     site
	SiteConfig               siteConfig
	SiteHealthAlertState     siteHealthAlertState
	Stream                   stream
	UpstreamConfig           upstreamConfig
	User                     user
	// 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

func (q *Query) ReadDB() *Query

func (*Query) ReplaceDB

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

func (q *Query) UnderlyingDB() *gorm.DB

func (*Query) WithContext

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

func (*Query) WriteDB

func (q *Query) WriteDB() *Query

type QueryTx

type QueryTx struct {
	*Query
	Error error
}

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