bend-kit-postgres
Search uses release 0.3.0.0 · 255 definitions
Definitions (255)
- type ParamA StartupMessage parameter, such as ("user", name) or ("database", db).
- type FrontFrontend messages.
- type FieldA RowDescription column.
- type NoticeAn ErrorResponse or NoticeResponse field: code is its type byte, such as 67 ('C', SQLSTATE) or 77 ('M', message).
- type BackBackend messages.
- def notice.getThe first field whose code is code.
- def byte1
- def be16
- def be32
- def cstr.encponytail: a NUL inside a cstr field ends it early; the message length still frames it, so the server rejects that message only.
- def frame.of
- def frameA tagged message: the tag byte, the int32 length (counting itself), then the body.
- def packet.of
- def packetAn untagged startup-phase packet.
- def n16.con
- def n16.count
- def n16.of
- def n16An int16 count, then the pieces.
- def be16s
- def be32s
- def value.of
- def valueAn int32 length then the bytes; -1 and nothing for NULL.
- def values
- def params.enc
- def names.enc
- def notices.enc
- def fields.enc
- def encodeThe wire bytes of a frontend message.
- def auth.enc
- def encode.backThe wire bytes of a backend message, as a server sends it.
- type CurThe buffer, the next byte i, the end e of the message body (e <= len), and whether every read so far fit.
- def fail
- def need
- def left
- def uint.got
- def uint.at
- def uintA big-endian unsigned integer of n bytes (1, 2 or 4).
- def take.got
- def take.at
- def takeThe next n bytes, copied out.
- def rest
- def nul
- def cstr.in
- def cstr.at
- def cstrThe bytes before the next NUL inside the body, and the cursor past it.
- def u16s
- def u32s
- def manyn more items after the one in r, oldest last in acc.
- def n16.go
- def n16.decAn int16 count, then that many items.
- def list16
- def dup
- def col.some
- def col.of
- def col.len
- def colAn int32 length then the bytes; -1 is NULL, and any other negative length does not fit.
- type LoopA loop up to a terminator: Go holds an item still to push, Stop the end.
- def loop.endOut of fuel before the terminator is Bad.
- def loop.pick
- def strs.len
- def strs.read
- def strsEach string takes a byte, so fuel of the bytes left is enough.
- def strs.start
- def names.decNUL-terminated strings up to an empty one.
- def pr.len
- def pr.read
- def pr.val
- def prsName and value pairs up to an empty name; a value may be empty.
- def prs.start
- def params.dec
- def notice.code
- def notice.push
- def noticesFields up to a zero code byte; each takes two bytes, so the bytes left are enough fuel.
- def notices.start
- def notices.dec
- def fd.g
- def fd.f
- def fd.e
- def fd.d
- def fd.c
- def fd.b
- def fd.a
- def field
- def one
- def ps.b
- def ps.a
- def bkd.b
- def bkd.a
- def rfq
- def auth.data
- def auth.of
- def auth
- def back
- type ReaderBytes read from the server, and the index of the first byte not yet decoded.
- def reader
- def feed.at
- def feedDrops the decoded bytes, then adds chunk.
- type NextOne message; Want until it has all arrived; Bad for a length below 4 or above 1 GiB, or a body its tag does not fill exactly.
- def next.done
- def next.body