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

Method __iadd__

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

Source from the content-addressed store, hash-verified

192 return SQLQuery(items + self.items)
193
194 def __iadd__(self, other):
195 if isinstance(other, (str, SQLParam)):
196 self.items.append(other)
197 elif isinstance(other, SQLQuery):
198 self.items.extend(other.items)
199 else:
200 return NotImplemented
201 return self
202
203 def __len__(self):
204 return len(self.query())

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected