Skip to content

Commit c486789

Browse files
committed
Add static properties to Record
1 parent b1d4115 commit c486789

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/rushdb/record.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ def id(self) -> str:
1818
"""Get record ID."""
1919
return self.data['__id']
2020

21+
@property
22+
def proptypes(self) -> str:
23+
"""Get record ID."""
24+
return self.data['__proptypes']
25+
26+
@property
27+
def label(self) -> str:
28+
"""Get record ID."""
29+
return self.data['__label']
30+
2131
@property
2232
def timestamp(self) -> int:
2333
"""Get record timestamp from ID."""

0 commit comments

Comments
 (0)