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

Method add_project

pydbml/database.py:132–137  ·  view source on GitHub ↗
(self, obj: Project)

Source from the content-addressed store, hash-verified

130 return obj
131
132 def add_project(self, obj: Project) -> Project:
133 if self.project:
134 self.delete_project()
135 self._set_database(obj)
136 self.project = obj
137 return obj
138
139 def delete(self, obj: Any) -> Any:
140 if isinstance(obj, Table):

Callers 4

test_add_projectMethod · 0.95
test_delete_projectMethod · 0.95
addMethod · 0.95

Calls 2

delete_projectMethod · 0.95
_set_databaseMethod · 0.95

Tested by 3

test_add_projectMethod · 0.76
test_delete_projectMethod · 0.76