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

Method locate_table

pydbml/parser/parser.py:209–219  ·  view source on GitHub ↗
(self, schema: str, name: str)

Source from the content-addressed store, hash-verified

207 blueprint.parser = self
208
209 def locate_table(self, schema: str, name: str) -> "Table":
210 if not self.database:
211 raise RuntimeError("Database is not ready")
212 # first by alias
213 result = self.database.table_dict.get(name)
214 if result is None:
215 full_name = f"{schema}.{name}"
216 result = self.database.table_dict.get(full_name)
217 if result is None:
218 raise TableNotFoundError(f"Table {full_name} not present in the database")
219 return result
220
221 def build_database(self):
222 self.database = Database(

Callers 3

test_edgeMethod · 0.95
buildMethod · 0.80
buildMethod · 0.80

Calls 2

TableNotFoundErrorClass · 0.90
getMethod · 0.80

Tested by 1

test_edgeMethod · 0.76