MCPcopy Index your code
hub / github.com/clips/pattern / _query

Method _query

test/test_db.py:613–620  ·  view source on GitHub ↗

Returns a pattern.db.Query object on a mock Table and Database.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

611 self.db.drop(table)
612
613 def _query(self, *args, **kwargs):
614 """ Returns a pattern.db.Query object on a mock Table and Database.
615 """
616 class Database:
617 escape, relations = lambda self, v: db._escape(v), []
618 class Table:
619 name, fields, db = "persons", ["id", "name", "age", "sex"], Database()
620 return db.Query(Table(), *args, **kwargs)
621
622 def test_abs(self):
623 # Assert absolute fieldname for trivial cases.

Callers 1

test_groupMethod · 0.95

Calls 1

TableClass · 0.70

Tested by

no test coverage detected