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

Function makeByte

internal/engine/postgresql/utils.go:42–48  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

40}
41
42func makeByte(s string) byte {
43 var b byte
44 if s == "" {
45 return b
46 }
47 return []byte(s)[0]
48}
49
50func makeUint32Slice(in []uint64) []uint32 {
51 out := make([]uint32, len(in))

Callers 10

convertAggrefFunction · 0.85
convertAlterDomainStmtFunction · 0.85
convertColumnDefFunction · 0.85
convertConstraintFunction · 0.85
convertCreateAmStmtFunction · 0.85
convertRangeTblEntryFunction · 0.85
convertRangeVarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected