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

Method __init__

pattern/db/__init__.py:820–830  ·  view source on GitHub ↗

A collection of rows consisting of one or more fields (i.e., table columns) of a certain type (i.e., strings, numbers).

(self, name, database)

Source from the content-addressed store, hash-verified

818 insert = remove = pop = __setitem__
819
820 def __init__(self, name, database):
821 """ A collection of rows consisting of one or more fields (i.e., table columns)
822 of a certain type (i.e., strings, numbers).
823 """
824 self.database = database
825 self._name = name
826 self.fields = [] # List of field names (i.e., column names).
827 self.schema = {} # Dictionary of (field, Schema)-items.
828 self.default = {} # Default values for Table.insert().
829 self.primary_key = None
830 self._update()
831
832 def _update(self):
833 # Retrieve table column names.

Callers

nothing calls this directly

Calls 1

_updateMethod · 0.95

Tested by

no test coverage detected