MCPcopy
hub / github.com/dbcli/pgcli / escape

Function escape

tests/metadata.py:15–18  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13
14
15def escape(name):
16 if not name.islower() or name in ("select", "localtimestamp"):
17 return '"' + name + '"'
18 return name
19
20
21def completion(display_meta, text, pos=0):

Callers 6

columnsMethod · 0.85
datatypesMethod · 0.85
tablesMethod · 0.85
viewsMethod · 0.85
functionsMethod · 0.85
schemasMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected