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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy