MCPcopy
hub / github.com/sqlc-dev/sqlc / genInformationSchema

Function genInformationSchema

internal/engine/postgresql/information_schema.go:12–4111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10var funcsgenInformationSchema = []*catalog.Function{}
11
12func genInformationSchema() *catalog.Schema {
13 s := &catalog.Schema{Name: "information_schema"}
14 s.Funcs = funcsgenInformationSchema
15 s.Tables = []*catalog.Table{
16 {
17 Rel: &ast.TableName{
18 Catalog: "pg_catalog",
19 Schema: "information_schema",
20 Name: "_pg_foreign_data_wrappers",
21 },
22 Columns: []*catalog.Column{
23 {
24 Name: "oid",
25 Type: ast.TypeName{Name: "oid"},
26 Length: toPointer(4),
27 },
28 {
29 Name: "fdwowner",
30 Type: ast.TypeName{Name: "oid"},
31 Length: toPointer(4),
32 },
33 {
34 Name: "fdwoptions",
35 Type: ast.TypeName{Name: "_text"},
36 IsArray: true,
37 },
38 {
39 Name: "foreign_data_wrapper_catalog",
40 Type: ast.TypeName{Name: "sql_identifier"},
41 Length: toPointer(64),
42 },
43 {
44 Name: "foreign_data_wrapper_name",
45 Type: ast.TypeName{Name: "sql_identifier"},
46 Length: toPointer(64),
47 },
48 {
49 Name: "authorization_identifier",
50 Type: ast.TypeName{Name: "sql_identifier"},
51 Length: toPointer(64),
52 },
53 {
54 Name: "foreign_data_wrapper_language",
55 Type: ast.TypeName{Name: "character_data"},
56 },
57 },
58 },
59 {
60 Rel: &ast.TableName{
61 Catalog: "pg_catalog",
62 Schema: "information_schema",
63 Name: "_pg_foreign_servers",
64 },
65 Columns: []*catalog.Column{
66 {
67 Name: "oid",
68 Type: ast.TypeName{Name: "oid"},
69 Length: toPointer(4),

Callers 1

NewCatalogFunction · 0.85

Calls 1

toPointerFunction · 0.85

Tested by

no test coverage detected