MCPcopy Create free account
hub / github.com/clips/pattern / Database

Class Database

test/test_db.py:616–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

TableClass · 0.70

Calls 1

_escapeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…