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

Function isNotNull

internal/engine/dolphin/utils.go:31–41  ·  view source on GitHub ↗
(n *pcast.ColumnDef)

Source from the content-addressed store, hash-verified

29}
30
31func isNotNull(n *pcast.ColumnDef) bool {
32 for i := range n.Options {
33 if n.Options[i].Tp == pcast.ColumnOptionNotNull {
34 return true
35 }
36 if n.Options[i].Tp == pcast.ColumnOptionPrimaryKey {
37 return true
38 }
39 }
40 return false
41}
42
43func convertToRangeVarList(list *ast.List, result *ast.List) {
44 if len(list.Items) == 0 {

Callers 1

convertColumnDefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected