MCPcopy
hub / github.com/jackc/pgx / Finish

Method Finish

pgtype/composite.go:571–578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569}
570
571func (b *CompositeTextBuilder) Finish() ([]byte, error) {
572 if b.err != nil {
573 return nil, b.err
574 }
575
576 b.buf[len(b.buf)-1] = ')'
577 return b.buf, nil
578}
579
580var quoteCompositeReplacer = strings.NewReplacer(`\`, `\\`, `"`, `\"`)
581

Callers 1

EncodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected