db

package
v0.0.0-...-a49857f Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Package db Code generated, DO NOT EDIT.

Index

Constants

View Source
const (
	UnDeleted      = 0       // 软删除:未删除
	COLUMN_PATTERN = "%s.%s" // 用于构造 table.column
)

Variables

This section is empty.

Functions

func NewAccountDAO

func NewAccountDAO(db *gorm.DB) persistence.AccountDAO

NewAccountDAO 构造方法

func NewApplicationDAO

func NewApplicationDAO(db *gorm.DB) persistence.ApplicationDAO

NewApplicationDAO 构造方法

func NewEventBusDAO

func NewEventBusDAO(db *gorm.DB) persistence.EventBusDAO

NewEventBusDAO 构造方法

func NewEventTypeDAO

func NewEventTypeDAO(db *gorm.DB) persistence.EventTypeDAO

NewEventTypeDAO 构造方法

func NewMySQLDB

func NewMySQLDB(config config.DBConfig) *gorm.DB

NewMySQLDB new mysql db

func NewPassportDAO

func NewPassportDAO(db *gorm.DB) persistence.PassportDAO

NewPassportDAO 构造方法

func NewPublicationDAO

func NewPublicationDAO(db *gorm.DB) persistence.PublicationDAO

NewPublicationDAO 构造方法

func NewSQLiteDB

func NewSQLiteDB() *gorm.DB

NewSQLiteDB new sqlLite client

func NewSecretDAO

func NewSecretDAO(db *gorm.DB) persistence.SecretDAO

NewSecretDAO 构造方法

func NewSubscriptionDAO

func NewSubscriptionDAO(db *gorm.DB) persistence.SubscriptionDAO

NewSubscriptionDAO 构造方法

func NewTechRelationDAO

func NewTechRelationDAO(db *gorm.DB) persistence.TechRelationDAO

NewTechRelationDAO 构造方法

Types

type AccountDAO

type AccountDAO struct {
	// contains filtered or unexported fields
}

AccountDAO Account 数据访问对象

func (AccountDAO) BaseFields

func (e AccountDAO) BaseFields() base.Fields

BaseFields AccountDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (AccountDAO) Create

func (AccountDAO) Delete

func (AccountDAO) Get

Get 通用 get 方法

func (AccountDAO) IsRelated

func (e AccountDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (AccountDAO) Transaction

func (e AccountDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (AccountDAO) Update

type ApplicationDAO

type ApplicationDAO struct {
	// contains filtered or unexported fields
}

ApplicationDAO Application 数据访问对象

func (ApplicationDAO) BaseFields

func (e ApplicationDAO) BaseFields() base.Fields

BaseFields ApplicationDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (ApplicationDAO) Create

func (ApplicationDAO) Delete

func (ApplicationDAO) Get

Get 通用 get 方法

func (ApplicationDAO) IsRelated

func (e ApplicationDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (ApplicationDAO) Transaction

func (e ApplicationDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (ApplicationDAO) Update

type Category

type Category int
const (
	WHERE Category = 1
	JOIN  Category = 2
)

type EventBusDAO

type EventBusDAO struct {
	// contains filtered or unexported fields
}

EventBusDAO EventBus 数据访问对象

func (EventBusDAO) BaseFields

func (e EventBusDAO) BaseFields() base.Fields

BaseFields EventBusDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (EventBusDAO) Create

func (EventBusDAO) Delete

func (EventBusDAO) Get

Get 通用 get 方法

func (EventBusDAO) IsRelated

func (e EventBusDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (EventBusDAO) Transaction

func (e EventBusDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (EventBusDAO) Update

type EventTypeDAO

type EventTypeDAO struct {
	// contains filtered or unexported fields
}

EventTypeDAO EventType 数据访问对象

func (EventTypeDAO) BaseFields

func (e EventTypeDAO) BaseFields() base.Fields

BaseFields EventTypeDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (EventTypeDAO) Create

func (EventTypeDAO) Delete

func (EventTypeDAO) Get

Get 通用 get 方法

func (EventTypeDAO) IsRelated

func (e EventTypeDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (EventTypeDAO) Transaction

func (e EventTypeDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (EventTypeDAO) Update

type PassportDAO

type PassportDAO struct {
	// contains filtered or unexported fields
}

PassportDAO Passport 数据访问对象

func (PassportDAO) BaseFields

func (e PassportDAO) BaseFields() base.Fields

BaseFields PassportDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (PassportDAO) Create

func (PassportDAO) Delete

func (PassportDAO) Get

Get 通用 get 方法

func (PassportDAO) IsRelated

func (e PassportDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (PassportDAO) Transaction

func (e PassportDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (PassportDAO) Update

type PublicationDAO

type PublicationDAO struct {
	// contains filtered or unexported fields
}

PublicationDAO Publication 数据访问对象

func (PublicationDAO) BaseFields

func (e PublicationDAO) BaseFields() base.Fields

BaseFields PublicationDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (PublicationDAO) Create

func (PublicationDAO) Delete

func (PublicationDAO) Get

Get 通用 get 方法

func (PublicationDAO) IsRelated

func (e PublicationDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (PublicationDAO) Transaction

func (e PublicationDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (PublicationDAO) Update

type SecretDAO

type SecretDAO struct {
	// contains filtered or unexported fields
}

SecretDAO Secret 数据访问对象

func (SecretDAO) BaseFields

func (e SecretDAO) BaseFields() base.Fields

BaseFields SecretDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (SecretDAO) Create

func (e SecretDAO) Create(ctx context.Context, r req.CreateSecretReq) (string, error)

func (SecretDAO) Delete

func (e SecretDAO) Delete(ctx context.Context, r req.DeleteSecretReq) error

func (SecretDAO) Get

Get 通用 get 方法

func (SecretDAO) IsRelated

func (e SecretDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (SecretDAO) Transaction

func (e SecretDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (SecretDAO) Update

func (e SecretDAO) Update(ctx context.Context, r req.UpdateSecretReq) error

type SubscriptionDAO

type SubscriptionDAO struct {
	// contains filtered or unexported fields
}

SubscriptionDAO Subscription 数据访问对象

func (SubscriptionDAO) BaseFields

func (e SubscriptionDAO) BaseFields() base.Fields

BaseFields SubscriptionDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (SubscriptionDAO) Create

func (SubscriptionDAO) Delete

func (SubscriptionDAO) Get

Get 通用 get 方法

func (SubscriptionDAO) IsRelated

func (e SubscriptionDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (SubscriptionDAO) Transaction

func (e SubscriptionDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (SubscriptionDAO) Update

type TechRelationDAO

type TechRelationDAO struct {
	// contains filtered or unexported fields
}

TechRelationDAO TechRelation 数据访问对象

func (TechRelationDAO) BaseFields

func (e TechRelationDAO) BaseFields() base.Fields

BaseFields TechRelationDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底

func (TechRelationDAO) Create

func (TechRelationDAO) Delete

func (TechRelationDAO) Get

Get 通用 get 方法

func (TechRelationDAO) IsRelated

func (e TechRelationDAO) IsRelated(fields base.Fields) bool

IsRelated check fields is related EventBusDAO

func (TechRelationDAO) Transaction

func (e TechRelationDAO) Transaction(fun func(tx *gorm.DB) error) error

Transaction 事务执行

func (TechRelationDAO) Update

Jump to

Keyboard shortcuts

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