Download pgsql/include/server/fe_utils/string_utils.h from codekingpro/portable-devtools: direct link, hf CLI and curl.
- Browser
- Download file 2.57 kB
-
https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/fe_utils/string_utils.h
- Command line
-
hf download hf://datasets/codekingpro/portable-devtools@df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/fe_utils/string_utils.h
-
curl -L -o string_utils.h https://huggingface.co/datasets/codekingpro/portable-devtools/resolve/df58e70f9edde36aaca2d2aacc2440dd6c2f807d/pgsql/include/server/fe_utils/string_utils.h
2.57 kB
| /*------------------------------------------------------------------------- | |
| * | |
| * String-processing utility routines for frontend code | |
| * | |
| * Utility functions that interpret backend output or quote strings for | |
| * assorted contexts. | |
| * | |
| * | |
| * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/fe_utils/string_utils.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* Global variables controlling behavior of fmtId() and fmtQualifiedId() */ | |
| extern PGDLLIMPORT int quote_all_identifiers; | |
| extern PQExpBuffer (*getLocalPQExpBuffer) (void); | |
| /* Functions */ | |
| extern const char *fmtId(const char *rawid); | |
| extern const char *fmtQualifiedId(const char *schema, const char *id); | |
| extern char *formatPGVersionNumber(int version_number, bool include_minor, | |
| char *buf, size_t buflen); | |
| extern void appendStringLiteral(PQExpBuffer buf, const char *str, | |
| int encoding, bool std_strings); | |
| extern void appendStringLiteralConn(PQExpBuffer buf, const char *str, | |
| PGconn *conn); | |
| extern void appendStringLiteralDQ(PQExpBuffer buf, const char *str, | |
| const char *dqprefix); | |
| extern void appendByteaLiteral(PQExpBuffer buf, | |
| const unsigned char *str, size_t length, | |
| bool std_strings); | |
| extern void appendShellString(PQExpBuffer buf, const char *str); | |
| extern bool appendShellStringNoError(PQExpBuffer buf, const char *str); | |
| extern void appendConnStrVal(PQExpBuffer buf, const char *str); | |
| extern void appendPsqlMetaConnect(PQExpBuffer buf, const char *dbname); | |
| extern bool parsePGArray(const char *atext, char ***itemarray, int *nitems); | |
| extern void appendPGArray(PQExpBuffer buffer, const char *value); | |
| extern bool appendReloptionsArray(PQExpBuffer buffer, const char *reloptions, | |
| const char *prefix, int encoding, bool std_strings); | |
| extern 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); | |
| extern void patternToSQLRegex(int encoding, PQExpBuffer dbnamebuf, | |
| PQExpBuffer schemabuf, PQExpBuffer namebuf, | |
| const char *pattern, bool force_escape, | |
| bool want_literal_dbname, int *dotcnt); | |