Conversation
|
With this PR
I'd propose to don't add ambiguity and stick to typing a few characters more. |
|
What about implementing an index, ie |
|
What would |
|
Using tuple comparison, indexes all of the documents within a table based on the given table.insert_multiple([{'x': 1, 'y': 1}, {'x': 1, 'y': 2}])
idx = table.index('x', 'y')
assert idx[0] == {'x': 1, 'y': 1}
assert idx[1] == {'x': 1, 'y': 2} |
|
I've had that idea, too. Maybe we could make that an extension? idx = tinyindex(db, 'x', 'y')
... |
|
Sounds good to me! |
|
Implemented said extension: https://github.com/eugene-eeo/tinyindex |
Allows you to slice the tables: