Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-swinkler committed Nov 22, 2023
1 parent 5dba820 commit d63b18c
Show file tree
Hide file tree
Showing 7 changed files with 298 additions and 532 deletions.
34 changes: 4 additions & 30 deletions pkg/sdk/procedures_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ var procedureSet = g.NewQueryStruct("ProcedureSet").
var procedureUnset = g.NewQueryStruct("ProcedureUnset").OptionalSQL("COMMENT")

var (
procedureStrictOrNot = g.NewQueryStruct("ProcedureStrictOrNot").OptionalSQL("STRICT").OptionalSQL("CALLED ON NULL INPUT")
procedureVolatileOrNot = g.NewQueryStruct("ProcedureVolatileOrNot").OptionalSQL("VOLATILE").OptionalSQL("IMMUTABLE")
procedureExecuteAs = g.NewQueryStruct("ProcedureExecuteAs").OptionalSQL("CALLER").OptionalSQL("OWNER")
procedureImport = g.NewQueryStruct("ProcedureImport").Text("Import", g.KeywordOptions().SingleQuotes())
procedurePackage = g.NewQueryStruct("ProcedurePackage").Text("Package", g.KeywordOptions().SingleQuotes())
procedureStrictOrNot = g.NewQueryStruct("ProcedureStrictOrNot").OptionalSQL("STRICT").OptionalSQL("CALLED ON NULL INPUT")
procedureExecuteAs = g.NewQueryStruct("ProcedureExecuteAs").OptionalSQL("CALLER").OptionalSQL("OWNER")
procedureImport = g.NewQueryStruct("ProcedureImport").Text("Import", g.KeywordOptions().SingleQuotes())
procedurePackage = g.NewQueryStruct("ProcedurePackage").Text("Package", g.KeywordOptions().SingleQuotes())
)

var ProceduresDef = g.NewInterface(
Expand Down Expand Up @@ -124,11 +123,6 @@ var ProceduresDef = g.NewInterface(
procedureStrictOrNot,
g.KeywordOptions(),
).
OptionalQueryStructField(
"VolatileOrNot",
procedureVolatileOrNot,
g.KeywordOptions(),
).
OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()).
OptionalQueryStructField(
"ExecuteAs",
Expand Down Expand Up @@ -162,11 +156,6 @@ var ProceduresDef = g.NewInterface(
procedureStrictOrNot,
g.KeywordOptions(),
).
OptionalQueryStructField(
"VolatileOrNot",
procedureVolatileOrNot,
g.KeywordOptions(),
).
OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()).
OptionalQueryStructField(
"ExecuteAs",
Expand Down Expand Up @@ -218,11 +207,6 @@ var ProceduresDef = g.NewInterface(
procedureStrictOrNot,
g.KeywordOptions(),
).
OptionalQueryStructField(
"VolatileOrNot",
procedureVolatileOrNot,
g.KeywordOptions(),
).
OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()).
OptionalQueryStructField(
"ExecuteAs",
Expand Down Expand Up @@ -269,11 +253,6 @@ var ProceduresDef = g.NewInterface(
procedureStrictOrNot,
g.KeywordOptions(),
).
OptionalQueryStructField(
"VolatileOrNot",
procedureVolatileOrNot,
g.KeywordOptions(),
).
OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()).
OptionalQueryStructField(
"ExecuteAs",
Expand Down Expand Up @@ -307,11 +286,6 @@ var ProceduresDef = g.NewInterface(
procedureStrictOrNot,
g.KeywordOptions(),
).
OptionalQueryStructField(
"VolatileOrNot",
procedureVolatileOrNot,
g.KeywordOptions(),
).
OptionalTextAssignment("COMMENT", g.ParameterOptions().SingleQuotes()).
OptionalQueryStructField(
"ExecuteAs",
Expand Down
141 changes: 37 additions & 104 deletions pkg/sdk/procedures_dto_builders_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d63b18c

Please sign in to comment.