Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlc-dev/sqlc
/ arrayDims
Function
arrayDims
internal/compiler/to_column.go:10–15 ·
view source on GitHub ↗
(n *ast.TypeName)
Source
from the content-addressed store, hash-verified
8
)
9
10
func
arrayDims(n *ast.TypeName) int {
11
if
n == nil || n.ArrayBounds == nil {
12
return
0
13
}
14
return
len(n.ArrayBounds.Items)
15
}
16
17
func
toColumn(n *ast.TypeName) *Column {
18
if
n == nil {
Callers
1
toColumn
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected