commit b1974559e98bcc230c103c6c2df22cb07a87354d
parent ca45454eb89a2e65449b48afd28eac9f95384256
Author: Joris Vink <joris@coders.se>
Date: Sat, 11 May 2019 11:58:37 +0200
more updates
Diffstat:
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/api/pgsql.md b/api/pgsql.md
@@ -131,7 +131,7 @@ KORE\_RESULT\_OK or KORE\_RESULT\_ERROR.
### Synopsis
```
-int kore_pgsql_query(struct kore_pgsql *pgsql, const char *query, int result, int count, ...)
+int kore_pgsql_query_params(struct kore_pgsql *pgsql, const char *query, int result, int count, ...)
```
### Description
@@ -336,5 +336,25 @@ A pointer to the data. This should not be freed by the caller.
---
+# kore\_pgsql\_column\_binary
+### Synopsis
+
+```
+int kore_pgsql_column_binary(struct kore_pgsql *pgsql, int col)
+```
+
+### Description
+
+Test if the given column contains binary or text data.
+
+| Parameter | Description |
+| --- | --- |
+| pgsql | The pgsql data structure. |
+| col | The column number. |
+### Returns
+
+Returns 1 if the column contains binary data or 0 if text.
+
+---
diff --git a/api/python.md b/api/python.md
@@ -472,6 +472,9 @@ status, body = await client.post(
"x-header": "from-client"
}
)
+
+# Get the headers from a GET request.
+status, headers, body = await client.get(return_headers=True)
```
---