Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any interface {
}
func GetNotNilList ¶
func GetNotNilList(effects []DBEffect, DB Interpreter) ([]Any, error)
type DBEffect ¶
type DBEffect interface {
Apply(ip Interpreter) RuntimeContext
}
type Delete ¶
type Delete interface {
Apply(Interpreter) RuntimeContext
DeletionParam() (DBName string, oldValue Any)
}
Delete
type Insert ¶
type Insert interface {
Apply(Interpreter) RuntimeContext
InsertionParam() (DBName string, newValue Any)
}
Insert
type Interpreter ¶
type Interpreter struct {
Insert func(ctx Insert) RuntimeContext
Select func(ctx Select) RuntimeContext
Update func(ctx Update) RuntimeContext
Delete func(ctx Delete) RuntimeContext
}
Interpreter
type RuntimeContext ¶
type Select ¶
type Select interface {
Apply(Interpreter) RuntimeContext
SelectionParam() (DBName string, query Any)
}
Select
type Update ¶
type Update interface {
Apply(Interpreter) RuntimeContext
UpdateParam() (DBName string, newValue Any, upsert bool)
}
Update
Source Files
¶
Click to show internal directories.
Click to hide internal directories.