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

Method __getitem__

pattern/db/__init__.py:401–404  ·  view source on GitHub ↗
(self, k)

Source from the content-addressed store, hash-verified

399 def __init__(self, db, *args, **kwargs):
400 dict.__init__(self, *args, **kwargs); self.db=db
401 def __getitem__(self, k):
402 if dict.__getitem__(self, k) is None:
403 dict.__setitem__(self, k, Table(name=k, database=self.db))
404 return dict.__getitem__(self, k)
405
406 def __init__(self, name, host="localhost", port=3306, username="root", password="", type=SQLITE, unicode=True, **kwargs):
407 """ A collection of tables stored in an SQLite or MySQL database.

Callers

nothing calls this directly

Calls 3

TableClass · 0.70
__getitem__Method · 0.45
__setitem__Method · 0.45

Tested by

no test coverage detected