Add httpfs DB migrations and generate the input (#35)
This commit is contained in:
1 parent
bd5ddea6e4
commit
7f2aa5ca8f
21 files changed
+576
-139
No files matched your search
@@ -37,7 +37,7 @@ var createFuncs = map[string][]*createInfo{
|
||||
|
||||
func writeCreateFuncs() {
|
||||
for outPkg, funcs := range createFuncs {
|
||||
outFile := os.Getenv("APIGEN_BASEPATH") + fmt.Sprintf("/api/%s/create.gen.go", outPkg)
|
||||
outFile := os.Getenv("GEN_BASEPATH") + fmt.Sprintf("/api/%s/create.gen.go", outPkg)
|
||||
outBuf := bytes.NewBuffer([]byte(fmt.Sprintf(
|
||||
`// Code generated by "make api"; DO NOT EDIT.
|
||||
package %s
|
||||
@@ -92,4 +92,4 @@ func (s {{ .BaseType }}) Create{{ .TargetType }}(ctx context.Context, {{ .LowerT
|
||||
|
||||
return target, apiErr, nil
|
||||
}
|
||||
`))
|
||||
`))
|
||||
Reference in new issue
Block a user