1
0
mirror of https://git.kore.io/kore.git synced 2024-11-12 05:10:48 +01:00
kore/examples/pgsql
Joris Vink d0a6958747 Let http_state_create() take an "onfree" callback.
This function is called when an HTTP request is being free'd,
allowing you to perform any sort of state cleanup attached
to the HTTP request.
2019-04-28 21:48:16 +02:00
..
conf change all domain directives to * in examples. 2017-09-19 15:16:02 +02:00
src Let http_state_create() take an "onfree" callback. 2019-04-28 21:48:16 +02:00
.gitignore add a .gitignore here 2014-09-19 14:51:14 +02:00
README.md kore -> kodev where appropriate 2017-03-06 11:00:53 +01:00

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:

	# kodev run