summary refs log tree commit diff
path: root/synapse/storage/databases/main/signatures.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Return read-only collections from `@cached` methods (#13755)Sean Quah2023-02-101-3/+3
| | | | | | | | | | | | | It's important that collections returned from `@cached` methods are not modified, otherwise future retrievals from the cache will return the modified collection. This applies to the return values from `@cached` methods and the values inside the dictionaries returned by `@cachedList` methods. It's not necessary for the dictionaries returned by `@cachedList` methods themselves to be read-only. Signed-off-by: Sean Quah <seanq@matrix.org> Co-authored-by: David Robertson <davidr@element.io>
* remove constantly lib use and switch to enums. (#12624)andrew do2022-05-041-1/+1
|
* Add some type hints to datastore (#12423)Dirk Klimpel2022-04-121-1/+1
| | | | | | | | | | | | | | | | | | | * Add some type hints to datastore * newsfile * change `Collection` to `List` * refactor return type of `select_users_txn` * correct type hint in `stream.py` * Remove `Optional` in `select_users_txn` * remove not needed return type in `__init__` * Revert change in `get_stream_id_for_event_txn` * Remove import from `Literal`
* Stop reading from `event_reference_hashes` (#11794)Richard van der Hoff2022-01-211-30/+24
| | | | Preparation for dropping this table altogether. Part of #6574.
* Get db signatures file to pass mypy (#11312)David Robertson2021-11-111-2/+2
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Convert additional databases to async/await part 2 (#8200)Patrick Cloke2020-09-011-7/+33
|
* Convert additional database stores to async/await (#8045)Patrick Cloke2020-08-071-5/+2
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-0/+71