MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / sqlizeNormalString

Function sqlizeNormalString

eos/db/gamedata/queries.py:67–72  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

65
66
67def sqlizeNormalString(line):
68 # Escape backslashes first, as they will be as escape symbol in queries
69 # Then escape percent and underscore signs
70 # Finally, replace generic wildcards with sql-style wildcards
71 line = line.replace("\\", "\\\\").replace("%", "\\%").replace("_", "\\_").replace("*", "%")
72 return line
73
74
75itemNameMap = {}

Callers 2

searchItemsFunction · 0.85
searchSkillsFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected