4 ms·
Yeah, jackc/pgproto3 is great. When I first started the project, I was digging through the protocol documentation and expecting to write message parsers. But pg
by benbjohnson 5y ago
Yeah, jackc/pgproto3 is great. When I first started the project, I was digging through the protocol documentation and expecting to write message parsers. But pgproto3 handles all that. Almost all the real code in Postlite is in a 500 LOC file[1]. I was surprised how easy it was.
[1]: https://github.com/benbjohnson/postlite/blob/main/server.go https://github.com/benbjohnson/postlite/blob/main/server.go
- pmarreck 5y agoat least half the code is error-checking or error-handling