MCPcopy Index your code
hub / github.com/webpy/webpy / __add__

Method __add__

web/db.py:176–183  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

174 self.items.append(value)
175
176 def __add__(self, other):
177 if isinstance(other, str):
178 items = [other]
179 elif isinstance(other, SQLQuery):
180 items = other.items
181 else:
182 return NotImplemented
183 return SQLQuery(self.items + items)
184
185 def __radd__(self, other):
186 if isinstance(other, str):

Callers

nothing calls this directly

Calls 1

SQLQueryClass · 0.85

Tested by

no test coverage detected