MMQLEngine/mmql/statements/types.go

38 lines
565 B
Go
Raw Normal View History

2022-10-21 16:03:06 +00:00
package statements
2022-10-20 10:04:28 +00:00
2022-10-21 12:49:35 +00:00
type IStatement interface { }
type RawStatement struct {
IStatement
Value string
}
type QuotedValue struct {
IStatement
RawStatement *RawStatement
Quote string
}
type BracketedValue struct {
IStatement
RawStatement *RawStatement
Brackets string
2022-10-20 10:04:28 +00:00
}
2022-10-21 16:03:06 +00:00
type AmountStatement struct {
2022-10-20 10:04:28 +00:00
IStatement
2022-10-21 16:03:06 +00:00
Value float64
Unit string
2022-10-20 10:04:28 +00:00
}
2022-10-21 12:49:35 +00:00
2022-10-21 16:03:06 +00:00
type IActionStatement interface { }
2022-10-21 12:49:35 +00:00
type OrderStatement struct {
2022-10-21 16:03:06 +00:00
IStatement
IActionStatement
Action string
2022-10-21 12:49:35 +00:00
}
func ( this *OrderStatement ) For( stmt IStatement ) {
}