gormplugin

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyStatementCreate

func ModifyStatementCreate(db *gorm.DB, z1AddStatement map[string]interface{})

func ModifyStatementWhere

func ModifyStatementWhere(db *gorm.DB, z1AddStatement map[string]interface{})

Types

type AddStatement

type AddStatement struct {
	EnableTables string // 启用的表, 多个表通过英文逗号拆分, 并且字符串前后都有英文逗号, `,table1,table2,`
}

func (*AddStatement) Initialize

func (plugin *AddStatement) Initialize(db *gorm.DB) (err error)

func (*AddStatement) Name

func (plugin *AddStatement) Name() string

type ToMongo

type ToMongo struct {
	EnableTables string // 启用的表, 多个表通过英文逗号拆分, 并且字符串前后都有英文逗号, `,table1,table2,`
}

db.Use(&ToMongo{})

func (*ToMongo) Initialize

func (plugin *ToMongo) Initialize(db *gorm.DB) (err error)

func (*ToMongo) Name

func (plugin *ToMongo) Name() string

Jump to

Keyboard shortcuts

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