libusual
0.1
|
Utility functions for PostgreSQL data formats. More...
Functions | |
bool | pg_is_reserved_word (const char *str) |
Check if string is reserver word for PostgreSQL. | |
bool | pg_quote_literal (char *_dst, const char *_src, int dstlen) |
Quote value as string for PostgreSQL. | |
bool | pg_quote_ident (char *_dst, const char *_src, int dstlen) |
Quote value as ident for PostgreSQL. | |
bool | pg_quote_fqident (char *_dst, const char *_src, int dstlen) |
Quote fully-qualified ident for PostgreSQL. | |
struct StrList * | pg_parse_array (const char *pgarr, CxMem *cx) |
Parse PostgreSQL array. |
Utility functions for PostgreSQL data formats.
bool pg_is_reserved_word | ( | const char * | str | ) |
Check if string is reserver word for PostgreSQL.
bool pg_quote_literal | ( | char * | _dst, |
const char * | _src, | ||
int | dstlen | ||
) |
Quote value as string for PostgreSQL.
bool pg_quote_ident | ( | char * | _dst, |
const char * | _src, | ||
int | dstlen | ||
) |
Quote value as ident for PostgreSQL.
bool pg_quote_fqident | ( | char * | _dst, |
const char * | _src, | ||
int | dstlen | ||
) |
Quote fully-qualified ident for PostgreSQL.
struct StrList* pg_parse_array | ( | const char * | pgarr, |
CxMem * | cx | ||
) | [read] |
Parse PostgreSQL array.