MCPcopy
hub / github.com/electric-sql/pglite / describe

Function describe

packages/pg-protocol/src/serializer.ts:246–252  ·  view source on GitHub ↗
(msg: PortalOpts)

Source from the content-addressed store, hash-verified

244const emptyDescribeStatement = writer.addCString('S').flush(code.describe)
245
246const describe = (msg: PortalOpts): Uint8Array => {
247 return msg.name
248 ? cstringMessage(code.describe, `${msg.type}${msg.name ?? ''}`)
249 : msg.type === 'P'
250 ? emptyDescribePortal
251 : emptyDescribeStatement
252}
253
254const close = (msg: PortalOpts): Uint8Array => {
255 const text = `${msg.type}${msg.name ?? ''}`

Callers 15

sync-e2e.test.tsFile · 0.85
sync.test.tsFile · 0.85
hooks.test.tsFile · 0.85
testLiveQueryFunction · 0.85
injection.test.tsFile · 0.85
pg_dump.test.tsFile · 0.85
provider.test.tsxFile · 0.85
hooks.test.tsxFile · 0.85
testLiveQueryFunction · 0.85
runDescribeFunction · 0.85

Calls 1

cstringMessageFunction · 0.85

Tested by

no test coverage detected