Macrosยง
- from_
usize ๐
Structsยง
- Query message contains the string sql.
Enumsยง
- Message sent from server to psql client. Implement
write
(how to serialize it into psql buffer). Ref: https://www.postgresql.org/docs/current/protocol-message-formats.html - Messages that can be sent from pg client to server. Implement
read
.
Traitsยง
- From
Usize ๐
Functionsยง
- read_
null_ ๐terminated Continue read until reached a \0. Used in reading string from Bytes. - write_
body ๐Call f() to write body of the message and prepend it with 4-byte len as prescribed by the protocol. First write out body value and fill length value as i32 in front of it. - write_
cstr ๐Safe write of s into buf as cstring (String in the protocol). - write_
err_ ๐or_ notice Safe write error or notice message.