Skip to content

Commit 921db8c

Browse files
committed
Add a todo for dynamic indexing of test entity
1 parent 6312a84 commit 921db8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
@Entity(id=1, uid=1)
88
class TestEntity:
99
id = Id(id=1, uid=1001)
10+
# TODO Enable indexing dynamically, e.g. have a constructor to enable index(es).
11+
# E.g. indexString=False (defaults to false). Same for bytes.
1012
str = Property(str, id=2, uid=1002, index=True)
1113
bool = Property(bool, id=3, uid=1003)
1214
int64 = Property(int, type=PropertyType.long, id=4, uid=1004, index=True)

0 commit comments

Comments
 (0)