mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 20:49:01 -04:00
Gone is the ugly KORE_PGSQL macro that hid an overly complex state machine for the pgsql api. Gone is the pgsql array that was attached to http_requests. Gone are the callback hacks inside the pgsql api. Instead, I strongly encourage people to use the new state machine api Kore offers to properly deal with asynchronous queries. The pgsql example in examples/pgsql has been updated to reflect these changes.
334 B
334 B
Kore pgsql example.
This example demonstrates how one can use Kore state machines and the pgsql api to make fully asynchronous SQL queries.
Asynchronous in this case meaning, without interrupting a Kore worker its other clients their I/O or http requests.
Tons of comments inside on how everything works.
Run:
# kore run