MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / ParseDBitArray

Function ParseDBitArray

pkg/sql/sem/tree/datum.go:457–465  ·  view source on GitHub ↗

ParseDBitArray parses a string representation of binary digits.

(s string)

Source from the content-addressed store, hash-verified

455
456// ParseDBitArray parses a string representation of binary digits.
457func ParseDBitArray(s string) (*DBitArray, error) {
458 var a DBitArray
459 var err error
460 a.BitArray, err = bitarray.Parse(s)
461 if err != nil {
462 return nil, err
463 }
464 return &a, nil
465}
466
467// NewDBitArray returns a DBitArray.
468func NewDBitArray(bitLen uint) *DBitArray {

Callers 2

ParseMethod · 0.92
ParseAndRequireStringFunction · 0.85

Calls 1

ParseFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…