MCPcopy Index your code
hub / github.com/electric-sql/pglite / #parseField

Method #parseField

packages/pg-protocol/src/parser.ts:307–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 }
306
307 #parseField(): Field {
308 const name = this.#reader.cstring()
309 const tableID = this.#reader.int32()
310 const columnID = this.#reader.int16()
311 const dataTypeID = this.#reader.int32()
312 const dataTypeSize = this.#reader.int16()
313 const dataTypeModifier = this.#reader.int32()
314 const mode = this.#reader.int16() === 0 ? Modes.text : Modes.binary
315 return new Field(
316 name,
317 tableID,
318 columnID,
319 dataTypeID,
320 dataTypeSize,
321 dataTypeModifier,
322 mode,
323 )
324 }
325
326 #parseParameterDescriptionMessage(
327 offset: number,

Callers 1

Calls 3

cstringMethod · 0.80
int32Method · 0.80
int16Method · 0.80

Tested by

no test coverage detected