MCPcopy Index your code
hub / github.com/coder/coder / nullInt32Ptr

Function nullInt32Ptr

coderd/database/db2sdk/db2sdk.go:1678–1683  ·  view source on GitHub ↗
(n sql.NullInt32)

Source from the content-addressed store, hash-verified

1676}
1677
1678func nullInt32Ptr(n sql.NullInt32) *int32 {
1679 if !n.Valid {
1680 return nil
1681 }
1682 return &n.Int32
1683}
1684
1685func nullStringPtr(v sql.NullString) *string {
1686 if !v.Valid {

Callers 1

WorkspaceAgentScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected