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

Function genPGCatalog

internal/engine/postgresql/pg_catalog.go:30178–40613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30176}
30177
30178func genPGCatalog() *catalog.Schema {
30179 s := &catalog.Schema{Name: "pg_catalog"}
30180 s.Funcs = funcsgenPGCatalog
30181 s.Tables = []*catalog.Table{
30182 {
30183 Rel: &ast.TableName{
30184 Catalog: "pg_catalog",
30185 Schema: "pg_catalog",
30186 Name: "pg_aggregate",
30187 },
30188 Columns: []*catalog.Column{
30189 {
30190 Name: "tableoid",
30191 Type: ast.TypeName{Name: "oid"},
30192 IsNotNull: true,
30193 Length: toPointer(4),
30194 },
30195 {
30196 Name: "cmax",
30197 Type: ast.TypeName{Name: "cid"},
30198 IsNotNull: true,
30199 Length: toPointer(4),
30200 },
30201 {
30202 Name: "xmax",
30203 Type: ast.TypeName{Name: "xid"},
30204 IsNotNull: true,
30205 Length: toPointer(4),
30206 },
30207 {
30208 Name: "cmin",
30209 Type: ast.TypeName{Name: "cid"},
30210 IsNotNull: true,
30211 Length: toPointer(4),
30212 },
30213 {
30214 Name: "xmin",
30215 Type: ast.TypeName{Name: "xid"},
30216 IsNotNull: true,
30217 Length: toPointer(4),
30218 },
30219 {
30220 Name: "ctid",
30221 Type: ast.TypeName{Name: "tid"},
30222 IsNotNull: true,
30223 Length: toPointer(6),
30224 },
30225 {
30226 Name: "aggfnoid",
30227 Type: ast.TypeName{Name: "regproc"},
30228 IsNotNull: true,
30229 Length: toPointer(4),
30230 },
30231 {
30232 Name: "aggkind",
30233 Type: ast.TypeName{Name: "char"},
30234 IsNotNull: true,
30235 Length: toPointer(1),

Callers 1

NewCatalogFunction · 0.85

Calls 1

toPointerFunction · 0.85

Tested by

no test coverage detected