16 #ifndef STRING_UTILS_H
17 #define STRING_UTILS_H
27 extern const char *
fmtId(
const char *rawid);
28 extern const char *
fmtQualifiedId(
const char *schema,
const char *
id);
31 char *
buf,
size_t buflen);
38 const char *dqprefix);
40 const unsigned char *
str,
size_t length,
52 const char *prefix,
int encoding,
bool std_strings);
56 bool have_where,
bool force_escape,
57 const char *schemavar,
const char *namevar,
58 const char *altnamevar,
const char *visibilityrule,
63 const char *pattern,
bool force_escape,
64 bool want_literal_dbname,
int *dotcnt);
PQExpBufferData * PQExpBuffer
bool appendShellStringNoError(PQExpBuffer buf, const char *str)
void appendShellString(PQExpBuffer buf, const char *str)
void appendStringLiteralConn(PQExpBuffer buf, const char *str, PGconn *conn)
void appendPGArray(PQExpBuffer buffer, const char *value)
bool processSQLNamePattern(PGconn *conn, PQExpBuffer buf, const char *pattern, bool have_where, bool force_escape, const char *schemavar, const char *namevar, const char *altnamevar, const char *visibilityrule, PQExpBuffer dbnamebuf, int *dotcnt)
void appendPsqlMetaConnect(PQExpBuffer buf, const char *dbname)
void appendByteaLiteral(PQExpBuffer buf, const unsigned char *str, size_t length, bool std_strings)
const char * fmtId(const char *rawid)
bool parsePGArray(const char *atext, char ***itemarray, int *nitems)
void appendStringLiteral(PQExpBuffer buf, const char *str, int encoding, bool std_strings)
void patternToSQLRegex(int encoding, PQExpBuffer dbnamebuf, PQExpBuffer schemabuf, PQExpBuffer namebuf, const char *pattern, bool force_escape, bool want_literal_dbname, int *dotcnt)
bool appendReloptionsArray(PQExpBuffer buffer, const char *reloptions, const char *prefix, int encoding, bool std_strings)
const char * fmtQualifiedId(const char *schema, const char *id)
PGDLLIMPORT int quote_all_identifiers
PQExpBuffer(* getLocalPQExpBuffer)(void)
void appendStringLiteralDQ(PQExpBuffer buf, const char *str, const char *dqprefix)
void appendConnStrVal(PQExpBuffer buf, const char *str)
char * formatPGVersionNumber(int version_number, bool include_minor, char *buf, size_t buflen)