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

Method __init__

pattern/db/__init__.py:807–808  ·  view source on GitHub ↗
(self, table, *args, **kwargs)

Source from the content-addressed store, hash-verified

805 # New field() with optional=False must have a default value (can not be NOW).
806 # New field() can have index=True, but not PRIMARY or UNIQUE.
807 def __init__(self, table, *args, **kwargs):
808 list.__init__(self, *args, **kwargs); self.table=table
809 def append(self, field):
810 name, (field, index) = field[0], self.table.db._field_SQL(self.table.name, field)
811 self.table.db.execute("alter table `%s` add column %s;" % (self.table.name, field))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected