fake_delete

package
v2.9.40 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PluginCode = "github.com/latolukasz/beeorm/plugins/fake_delete"

Variables

This section is empty.

Functions

func ForceDelete

func ForceDelete(entity beeorm.Entity)

Types

type Options

type Options struct {
	FieldName string
}

type Plugin

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

func Init

func Init(options *Options) *Plugin

func (*Plugin) GetCode

func (p *Plugin) GetCode() string

func (*Plugin) InterfaceInitEntitySchema

func (p *Plugin) InterfaceInitEntitySchema(schema beeorm.SettableEntitySchema, _ *beeorm.Registry) error

func (*Plugin) PluginInterfaceEntityFlushing

func (p *Plugin) PluginInterfaceEntityFlushing(engine beeorm.Engine, event beeorm.EventEntityFlushing)

func (*Plugin) PluginInterfaceEntitySearch

func (p *Plugin) PluginInterfaceEntitySearch(_ beeorm.Engine, schema beeorm.EntitySchema, where *beeorm.Where) *beeorm.Where

func (*Plugin) PluginInterfaceTableSQLSchemaDefinition

func (p *Plugin) PluginInterfaceTableSQLSchemaDefinition(_ beeorm.Engine, sqlSchema *beeorm.TableSQLSchemaDefinition) error

Jump to

Keyboard shortcuts

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