MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / get

Method get

pydbml/_classes/table.py:131–135  ·  view source on GitHub ↗
(self, k, default: Optional[Column] = None)

Source from the content-addressed store, hash-verified

129 raise TypeError('indeces must be str or int')
130
131 def get(self, k, default: Optional[Column] = None) -> Optional[Column]:
132 try:
133 return self.__getitem__(k)
134 except (IndexError, ColumnNotFoundError):
135 return default
136
137 def __iter__(self):
138 return iter(self.columns)

Callers 10

test_getMethod · 0.95
parse_projectFunction · 0.80
parse_tableFunction · 0.80
parse_column_settingsFunction · 0.80
parse_columnFunction · 0.80
parse_indexFunction · 0.80
parse_table_groupFunction · 0.80
renderMethod · 0.80
reorder_tables_for_sqlFunction · 0.80
locate_tableMethod · 0.80

Calls 1

__getitem__Method · 0.95

Tested by 1

test_getMethod · 0.76