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

Method TypeName

internal/sql/format/format.go:11–11  ·  view source on GitHub ↗

TypeName returns the SQL type name for the given namespace and name. This handles dialect-specific type name mappings (e.g., pg_catalog.int4 -> integer)

(ns, name string)

Source from the content-addressed store, hash-verified

9 // TypeName returns the SQL type name for the given namespace and name.
10 // This handles dialect-specific type name mappings (e.g., pg_catalog.int4 -> integer)
11 TypeName(ns, name string) string
12
13 // Param returns the parameter placeholder for the given parameter number.
14 // PostgreSQL uses $1, $2, etc. MySQL uses ?

Callers 4

FormatMethod · 0.65
convertCompositeTypeStmtFunction · 0.65
convertCreateEnumStmtFunction · 0.65
translateFunction · 0.65

Implementers 4

Parserinternal/engine/postgresql/parse.go
Parserinternal/engine/dolphin/parse.go
Parserinternal/engine/clickhouse/parse.go
Parserinternal/engine/sqlite/parse.go

Calls

no outgoing calls

Tested by

no test coverage detected