MCPcopy Create free account
hub / github.com/ElementsProject/lightning / rewrite

Method rewrite

devtools/sql-rewrite.py:28–35  ·  view source on GitHub ↗
(self, queries)

Source from the content-addressed store, hash-verified

26 return query
27
28 def rewrite(self, queries):
29 for i, q in enumerate(queries):
30 if q['name'] is None:
31 continue
32 org = q['query']
33 queries[i]['query'] = self.rewrite_single(org)
34 eprint("Rewritten statement\n\tfrom {}\n\t to {}".format(org, q['query']))
35 return queries
36
37
38class Sqlite3Rewriter(Rewriter):

Callers 1

sql-rewrite.pyFile · 0.80

Calls 2

rewrite_singleMethod · 0.95
eprintFunction · 0.85

Tested by

no test coverage detected