kore/src
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
..
accesslog.c Add a BENCHMARK compile option which compiles without OpenSSL. 2014-08-01 10:22:32 +02:00
auth.c Rename the two functions used to read/set headers. 2014-08-05 14:26:31 +02:00
bsd.c Allow applications to create new connections in our event loop. 2014-09-17 08:25:45 +02:00
buf.c Attempt vsnprintf() up to BUFSIZ in kore_buf_appendv(). 2014-08-22 14:40:19 +02:00
cli.c Write our assets.h with a fixed include guard. 2014-09-26 15:50:56 +02:00
config.c Deprecate ssl_no_compression config option, its always on. 2014-08-05 13:07:32 +02:00
connection.c Allow applications to create new connections in our event loop. 2014-09-17 08:25:45 +02:00
domain.c Deprecate ssl_no_compression config option, its always on. 2014-08-05 13:07:32 +02:00
http.c Use s instead of req->stream. 2014-09-19 15:01:25 +02:00
kore.c Remove kore_cb and its related settings. 2014-08-04 19:54:32 +02:00
linux.c Allow applications to create new connections in our event loop. 2014-09-17 08:25:45 +02:00
mem.c Make kore_mem_free() behave like free() and don't do anything if NULL is passed in. 2014-09-25 22:20:47 +02:00
module.c Remove kore_cb and its related settings. 2014-08-04 19:54:32 +02:00
net.c Allow applications to create new connections in our event loop. 2014-09-17 08:25:45 +02:00
pgsql.c Add kore_pgsql_query_params(). 2014-09-28 21:39:16 +02:00
pool.c sprinkle more const chars 2014-08-04 12:40:21 +02:00
spdy.c Another round of spdy/3.1 improvements. 2014-08-10 21:39:47 +02:00
tasks.c Attach tasks/pgsqls to http_requests once more. 2014-08-14 22:05:34 +02:00
utils.c No need to set l here 2014-09-19 15:01:45 +02:00
validator.c sprinkle more const chars 2014-08-04 12:40:21 +02:00
worker.c No need to set now at the start, thanks clang. 2014-09-18 08:42:41 +02:00
zlib_dict.c properly deflate/inflate of name/value blocks. and add ability 2013-05-01 00:35:33 +02:00