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

Method setup

pattern/db/__init__.py:1326–1332  ·  view source on GitHub ↗

Creates the database table from View.schema, optionally overwriting the old table.

(self, overwrite=False)

Source from the content-addressed store, hash-verified

1324 return self.db[self._table]
1325
1326 def setup(self, overwrite=False):
1327 """ Creates the database table from View.schema, optionally overwriting the old table.
1328 """
1329 if overwrite:
1330 self.db.drop(self._table)
1331 if not self._table in self.db:
1332 self.db.create(self._table, self.schema)
1333
1334 def render(self, *path, **query):
1335 """ This method should be overwritten to return formatted table output (XML, HTML, RSS, ...)

Callers 3

tableMethod · 0.95
canvas.jsFile · 0.45
__init__Method · 0.45

Calls 2

dropMethod · 0.80
createMethod · 0.80

Tested by 1

__init__Method · 0.36