MCPcopy Create free account
hub / github.com/constructive-io/pgsql-parser / quoteIdentifier

Method quoteIdentifier

packages/quotes/src/quote-utils.ts:52–101  ·  view source on GitHub ↗

* Quote an identifier only if needed * * This is a TypeScript port of PostgreSQL's quote_identifier() function from ruleutils.c * https://github.com/postgres/postgres/blob/fab5cd3dd1323f9e66efeb676c4bb212ff340204/src/backend/utils/adt/ruleutils.c#L13055-L13137 * * Can avoid quoting if

(ident: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

ResTargetMethod · 0.80
deparseReturningListMethod · 0.80
ColumnRefMethod · 0.80
RangeVarMethod · 0.80
A_IndirectionMethod · 0.80
quoteIfNeededMethod · 0.80
StringMethod · 0.80
ColumnDefMethod · 0.80
ConstraintMethod · 0.80
IndexStmtMethod · 0.80
IndexElemMethod · 0.80
PartitionElemMethod · 0.80

Calls 1

keywordKindOfFunction · 0.90

Tested by

no test coverage detected