mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
ifcopenshell.stream - remove unrelated code from ifcopenshell.sql
This commit is contained in:
@@ -316,11 +316,9 @@ try:
|
|||||||
def __getitem__(self, key: int) -> Any:
|
def __getitem__(self, key: int) -> Any:
|
||||||
return self.__getattr__(list(self.stream_wrapper.attributes.keys())[key])
|
return self.__getattr__(list(self.stream_wrapper.attributes.keys())[key])
|
||||||
|
|
||||||
def __setattr__(self, key: str, value: int) -> None:
|
def __setattr__(self, key: str, value: int) -> NoReturn:
|
||||||
query = f"UPDATE `{self.stream_wrapper.ifc_class}` SET `{key}` = ? WHERE ifc_id = {self.stream_wrapper.id}"
|
"""Not supported during streaming."""
|
||||||
self.stream_wrapper.file.cursor.execute(query, (value,))
|
assert False, "Not supported during streaming."
|
||||||
self.stream_wrapper.file.db.commit()
|
|
||||||
self.stream_wrapper.attribute_cache = {}
|
|
||||||
|
|
||||||
def __getattr__(self, name: str) -> Any:
|
def __getattr__(self, name: str) -> Any:
|
||||||
INVALID, FORWARD, INVERSE = range(3)
|
INVALID, FORWARD, INVERSE = range(3)
|
||||||
|
|||||||
Reference in New Issue
Block a user