libusual  0.1
Functions
usual/pgutil.h File Reference

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.

Detailed Description

Utility functions for PostgreSQL data formats.


Function Documentation

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.