Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStmt ¶
func CreateStmt(stmt string) interface { ViewOption TriggerOption }
CreateStmt accepts raw SQL to create a view or trigger
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader is a Loader for gorm schema.
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger defines a trigger.
func NewTrigger ¶
func NewTrigger(opts ...TriggerOption) Trigger
NewTrigger receives a list of TriggerOption to build a Trigger.
type TriggerOption ¶
type TriggerOption interface {
// contains filtered or unexported methods
}
TriggerOption implemented by TRIGGER's related options
type ViewDefiner ¶
type ViewDefiner interface {
ViewDef(dialect string) []ViewOption
}
ViewDefiner defines a view.
type ViewOption ¶
type ViewOption interface {
// contains filtered or unexported methods
}
ViewOption implemented by VIEW's related options
Click to show internal directories.
Click to hide internal directories.