Skip to content

Commit 8186938

Browse files
orisanoalixinne
authored andcommitted
fix(engine/sqlite): added json_tree and json_each definitions
fix #1830
1 parent 6ae5bcc commit 8186938

File tree

10 files changed

+1067
-520
lines changed

10 files changed

+1067
-520
lines changed

internal/cmd/shim.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func pluginCatalog(c *catalog.Catalog) *plugin.Catalog {
115115
},
116116
Columns: columns,
117117
Comment: t.Comment,
118+
Hidden: t.Hidden,
118119
})
119120
}
120121
schemas = append(schemas, &plugin.Schema{

internal/codegen/golang/result.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ func buildStructs(req *plugin.GenerateRequest, options *opts.Options) []Struct {
6868
}
6969
for _, table := range schema.Tables {
7070
var tableName string
71+
if table.Hidden {
72+
continue
73+
}
7174
if schema.Name == req.Catalog.DefaultSchema {
7275
tableName = table.Rel.Name
7376
} else {

0 commit comments

Comments
 (0)