x/model: ParameterPragma -> ParamPragma
This commit is contained in:
parent
2633fcb149
commit
6917865bf3
@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ParameterPragma struct {
|
type ParamPragma struct {
|
||||||
Key string
|
Key string
|
||||||
Value string
|
Value string
|
||||||
}
|
}
|
||||||
@ -24,7 +24,7 @@ type File struct {
|
|||||||
From string
|
From string
|
||||||
|
|
||||||
// Optional
|
// Optional
|
||||||
Params []ParameterPragma
|
Params []ParamPragma
|
||||||
Template string
|
Template string
|
||||||
System string
|
System string
|
||||||
Adapter string
|
Adapter string
|
||||||
@ -105,7 +105,7 @@ func ParseFile(r io.Reader) (File, error) {
|
|||||||
case "FROM":
|
case "FROM":
|
||||||
f.From = p.Arg(0)
|
f.From = p.Arg(0)
|
||||||
case "PARAMETER":
|
case "PARAMETER":
|
||||||
f.Params = append(f.Params, ParameterPragma{
|
f.Params = append(f.Params, ParamPragma{
|
||||||
Key: strings.ToLower(p.Arg(0)),
|
Key: strings.ToLower(p.Arg(0)),
|
||||||
Value: p.Arg(1),
|
Value: p.Arg(1),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user