kore/examples
Joris Vink 3b09683f5c Add kore_pgsql_query_params().
This function uses PQsendQueryParams() instead of the normal PQsendQuery()
allowing you to pass binary data in a cleaner fashion.

A basic call would look something like:

char *mydata = "Hello";
size_t mydata_len = strlen(mydata);

kore_pgsql_query_params(&pgsql, req,
    "INSERT INTO foo VALUES($1::text)", KORE_PGSQL_FORMAT_TEXT, 1
    mydata, mydata_len, KORE_PGSQL_FORMAT_TEXT);

kore_pgsql_query_params() is variadic, allowing you to pass any
count of parameters where each parameter has the following:
	data pointer, data length, type of parameter.
2014-09-28 21:39:16 +02:00
..
generic Sprinkle kore_snprintf() where appropriate. 2014-08-11 11:02:30 +02:00
headers Rename the two functions used to read/set headers. 2014-08-05 14:26:31 +02:00
integers The default pid file is kore.pid so no need to set that explicitely 2014-08-05 13:11:53 +02:00
json_yajl The default pid file is kore.pid so no need to set that explicitely 2014-08-05 13:11:53 +02:00
ktunnel Disable timeouts for ktunnel 2014-09-18 10:30:59 +02:00
parameters The default pid file is kore.pid so no need to set that explicitely 2014-08-05 13:11:53 +02:00
pgsql Add kore_pgsql_query_params(). 2014-09-28 21:39:16 +02:00
tasks Attach tasks/pgsqls to http_requests once more. 2014-08-14 22:05:34 +02:00
video_stream Take away the reference to the video if we're not streaming 2014-08-12 09:43:19 +02:00