Skip to content

Commit 3825d3a

Browse files
committed
More progress
1 parent ee3f21f commit 3825d3a

3 files changed

Lines changed: 41 additions & 39 deletions

File tree

internal/cmd/shim.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ func pluginCatalog(c *catalog.Catalog) *plugin.Catalog {
1717

1818
func pluginQueries(r *compiler.Result) []*plugin.Query {
1919
var out []*plugin.Query
20-
for range r.Queries {
21-
out = append(out, &plugin.Query{})
20+
for _, q := range r.Queries {
21+
out = append(out, &plugin.Query{
22+
Text: q.SQL,
23+
})
2224
}
2325
return out
2426
}

internal/plugin/codegen.pb.go

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/plugin/codegen.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ message Column
9191

9292
message Query
9393
{
94-
string sql = 1 [json_name="sql"];
94+
string text = 1 [json_name="text"];
9595
string name = 2 [json_name="name"];
9696
string cmd = 3 [json_name="cmd"];
9797
repeated Column columns = 4 [json_name="columns"];

0 commit comments

Comments
 (0)