summary refs log tree commit diff
path: root/synapse/storage/__init__.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Add profile data to the room_membership table for joinsErik Johnston2016-12-081-0/+1
* Rip out more refresh_token codeRichard van der Hoff2016-11-301-1/+0
* Handling expiring stream extrems correctly.Erik Johnston2016-09-151-0/+2
* Add a room visibility streamErik Johnston2016-09-141-0/+3
* Track the max_stream_device_id in a separate table, since we delete from the ...Mark Haines2016-09-091-1/+1
* Fix the stream change cache to work over replicationMark Haines2016-09-071-1/+1
* Add stream change caches for device messagesMark Haines2016-09-071-0/+24
* Make _state_groups_id_gen a normal IdGeneratorErik Johnston2016-08-301-1/+1
* Add store-and-forward direct-to-device messagingMark Haines2016-08-251-0/+5
* Rename table. Add docs.Erik Johnston2016-08-151-1/+1
* Implement cache replication streamErik Johnston2016-08-151-3/+8
* Add some invalidations to a cache_streamErik Johnston2016-08-151-0/+3
* Add device_id support to /loginRichard van der Hoff2016-07-181-0/+3
* Pull out min stream_ordering from ex_outlier_streamErik Johnston2016-07-151-1/+2
* Move insert_client_ip to a separate classMark Haines2016-06-031-45/+3
* Add a slaved store for presenceMark Haines2016-06-031-3/+3
* Fix to allow start with postgresErik Johnston2016-05-271-2/+7
* Make deleting push actions more efficientDavid Baker2016-05-201-0/+9
* Add an openidish mechanism for proving to third parties that you own a given ...Mark Haines2016-05-051-1/+3
* Add timestamp and auto incrementing IDErik Johnston2016-05-041-0/+1
* Move _get_cache_dict into the SQLBaseStoreMark Haines2016-04-061-33/+0
* Fix stuck invitesErik Johnston2016-04-051-1/+2
* Rename direction to step, apply checks consistentlyMark Haines2016-04-011-1/+1
* Use a stream id generator for backfilled idsMark Haines2016-04-011-13/+7
* Use a stream id generator to assign state group idsMark Haines2016-03-301-1/+1
* Add replication stream for pushersMark Haines2016-03-151-1/+4
* Fix relative imports so they work in both py3 and py27Mark Haines2016-03-081-1/+1
* Prefill from the correct streamMark Haines2016-03-041-1/+1
* prefill the push rules stream change cacheMark Haines2016-03-041-2/+9
* Hook up the push rules stream to account_data in /syncMark Haines2016-03-041-0/+5
* Add a stream for push rule updatesMark Haines2016-03-011-1/+4
* Load the current id in the IdGenerator constructorMark Haines2016-03-011-7/+7
* Close cursorErik Johnston2016-02-181-0/+1
* Prefix TS fields with _tsErik Johnston2016-02-181-2/+2
* Initial cutErik Johnston2016-02-171-3/+47
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
* Cache get_room_changes_for_userErik Johnston2016-01-291-0/+4
* Comment. Remove superfluous order byErik Johnston2016-01-291-1/+3
* Don't prefill account dataErik Johnston2016-01-291-8/+1
* Actually use cacheErik Johnston2016-01-291-7/+13
* Max is not a functionErik Johnston2016-01-291-1/+1
* Convert param styleErik Johnston2016-01-291-0/+3
* Prefill stream change cachesErik Johnston2016-01-291-1/+48
* Clean up a bit. Add commentErik Johnston2016-01-281-18/+9
* Add a Homeserver.setup method.Erik Johnston2016-01-261-4/+41
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-0/+2
|\
| * Rename event-actions to event_push_actions as per PR requestDavid Baker2016-01-041-2/+2
| * Save event actions to the dbDavid Baker2015-12-101-0/+2
* | copyrightsMatthew Hodgson2016-01-071-1/+1
|/
* Add API for setting account_data globaly or on a per room basisMark Haines2015-12-011-0/+2
* Add APIs for adding and removing tags from roomsMark Haines2015-10-281-0/+2
* Merge branch 'erikj/store_engine' into erikj/searchErik Johnston2015-10-131-375/+0
|\
| * Expose error more nicelyErik Johnston2015-10-131-3/+0
| * Split out the schema preparation and update logic into its own moduleErik Johnston2015-10-131-375/+3
* | Add basic full text search impl.Erik Johnston2015-10-091-0/+2
|/
* Add some docstringsDaniel Wagner-Hall2015-09-221-0/+3
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-221-1/+19
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-4/+3
* /tokenrefresh POST endpointDaniel Wagner-Hall2015-08-201-1/+1
* Add index receipts_linearized_room_streamErik Johnston2015-08-171-1/+1
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dictionary...Erik Johnston2015-08-071-0/+5
|\
| * Don't complain about extra .pyc files we find while hunting for database schemasPaul "LeoNerd" Evans2015-08-071-0/+5
* | Change Cache to not use *args in its interfaceErik Johnston2015-08-071-2/+2
|/
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/receiptsErik Johnston2015-07-131-0/+2
|\
| * Add store for client end to end keysMark Haines2015-07-061-1/+3
* | Fix various typosErik Johnston2015-07-071-0/+3
* | Add tables for receiptsErik Johnston2015-06-301-1/+1
|/
* Bump schema versionErik Johnston2015-06-111-1/+1
* Add script to (re)convert the pushers table to changing the unique key. Also ...David Baker2015-06-041-1/+1
* Add index on eventsErik Johnston2015-05-131-1/+1
* Bump schema versionMark Haines2015-05-081-1/+1
* Don't lock user_ips table for upsert.Erik Johnston2015-05-011-0/+3
* We can't use REPLACE when upgrading databases now we have postgresErik Johnston2015-04-291-1/+2
* bump database schema versionMark Haines2015-04-291-1/+1
* Merge branch 'develop' of github.com:matrix-org/synapse into postgresErik Johnston2015-04-281-0/+12
|\
| * pep8David Baker2015-04-271-1/+1
| * Run database check before daemonizing, at the cost of database hygiene.David Baker2015-04-271-0/+10
* | Rename user_ips.user -> user_idErik Johnston2015-04-141-2/+2
* | Add support for postgres instead of mysql. Change sql accourdingly. blob + va...Erik Johnston2015-04-141-9/+6
* | Bump schema versionErik Johnston2015-04-101-1/+1
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-071-3/+33
|\|
| * Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-261-462/+27
| |\
| | * Remember the 'last seen' time for a given user/IP/device combination and only...Paul "LeoNerd" Evans2015-03-201-2/+30
| * | Minor PR comment tweaks.Kegan Dougal2015-03-161-1/+1
| * | Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-161-6/+7
| |\ \
| * | | Use seconds; start gluing in the AS scheduler into the AS handler.Kegan Dougal2015-03-091-2/+5
| * | | Add appservice txns sql schemaKegan Dougal2015-03-061-1/+1
* | | | PEP8Erik Johnston2015-04-071-4/+0
* | | | Fix prepare_sqlite3_database's convert_param_styleErik Johnston2015-04-071-7/+2
* | | | Bump database versionErik Johnston2015-04-071-1/+1
* | | | Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-22/+21
* | | | Fix unicode database supportErik Johnston2015-03-251-4/+8
* | | | Use _simple_upsertErik Johnston2015-03-241-3/+5
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-03-201-1/+2
|\ \ \ \ | | |_|/ | |/| |
| * | | Give sensible names for '_simple_...' transactionsErik Johnston2015-03-201-1/+3
| * | | Rearrange storage modulesErik Johnston2015-03-201-468/+4
| | |/ | |/|
* | | Rearrange storage modulesErik Johnston2015-03-201-462/+4
* | | Convert storage layer to be mysql compatibleErik Johnston2015-03-191-48/+116
|/ /
* | Also give _execute() a descriptionPaul "LeoNerd" Evans2015-03-111-2/+1
* | Add a description to storage layer's _execute_and_decode()Paul "LeoNerd" Evans2015-03-111-2/+2
* | These aren't defined for redacted events so don't crashDavid Baker2015-03-101-2/+4
|/
* Note that we don't specify execution orderErik Johnston2015-03-041-0/+4
* s/schema_deltas/applied_schema_deltas/Erik Johnston2015-03-041-7/+9
* s/%r/%s/Erik Johnston2015-03-041-1/+1
* Add example directory structures in docErik Johnston2015-03-041-1/+36
* Don't assume db conn is a Context Manager.Erik Johnston2015-03-041-1/+5
* Add unique constraint on schema_version.lock schema. Use conflict clause in sql.Erik Johnston2015-03-041-3/+3
* Use context manager with db conn to correctly commit and rollbackErik Johnston2015-03-041-11/+11
* More docs. Rename 'schema/current' to 'schema/full_schemas'Erik Johnston2015-03-041-7/+23
* Add some docs and remove unused variablesErik Johnston2015-03-041-8/+10
* SYN-67: Finish up implementing new database schema managementErik Johnston2015-03-041-66/+131
* SYN-67: Begin changing the way we handle schema versioningErik Johnston2015-03-021-38/+106
* Add missing commaErik Johnston2015-03-021-1/+1
* We purposefully don't have a version 14 delta script.Erik Johnston2015-03-021-1/+1
* Run deltas and bump user_version in upgrade scriptKegan Dougal2015-03-021-1/+1
* Use absolute path when loading delta sql filesErik Johnston2015-02-171-1/+2
* Bump schema versionErik Johnston2015-02-171-1/+1
* Merge pull request #50 from matrix-org/application-servicesMark Haines2015-02-131-0/+3
|\
| * Merge branch 'develop' into application-servicesKegan Dougal2015-02-111-0/+5
| |\
| * \ Merge branch 'develop' into application-servicesKegan Dougal2015-02-051-75/+136
| |\ \
| * | | Implement txns for AS (un)registration.Kegan Dougal2015-02-021-1/+1
| * | | Actually merge into develop.Kegan Dougal2015-02-021-8/+1
| * | | Merge branch 'develop' into application-servicesKegan Dougal2015-02-021-4/+93
| |\ \ \
| * | | | Add basic application_services SQL, and hook up parts of the appservice store...Kegan Dougal2015-01-281-0/+1
| * | | | Add appservice handler and store. Glue together rest > handler > store.Kegan Dougal2015-01-271-2/+3
* | | | | Prepare the database whenever a connection is opened from the db_pool so that...Mark Haines2015-02-131-0/+3
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into use-simplejsonErik Johnston2015-02-111-0/+5
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Invalidate the cache for an event if it is redactedMark Haines2015-02-111-0/+2
| * | | | Add a cache for get_eventMark Haines2015-02-111-0/+3
| | |_|/ | |/| |
* | | | pyflakesErik Johnston2015-02-111-1/+0
* | | | Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder...Erik Johnston2015-02-111-2/+9
* | | | Blunty replace json with simplejsonErik Johnston2015-02-111-1/+1
|/ / /
* | | Brief comment on why we do some things on every call to persist_event and not...Erik Johnston2015-02-041-0/+6
* | | Rearrange persist_event so that do all the queries that need to be done befor...Erik Johnston2015-02-041-71/+74
* | | Add doc to get_eventErik Johnston2015-02-031-0/+15
* | | Try to ensure we don't persist an event we have already persisted. In persist...Erik Johnston2015-02-031-4/+36
* | | Don't fail an entire request if one of the returned events fails a signature ...Erik Johnston2015-02-021-8/+13
| |/ |/|
* | Merge pull request #42 from matrix-org/replication_splitMark Haines2015-01-301-0/+29
|\ \
| * \ Merge branch 'rejections_storage' of github.com:matrix-org/synapse into repli...Erik Johnston2015-01-301-0/+40
| |\ \
| * | | Split up replication_layer module into client, server and transaction queueErik Johnston2015-01-261-1/+1
| * | | Add storage method have_eventsErik Johnston2015-01-231-0/+29
* | | | Remove merge conflictErik Johnston2015-01-301-3/+0
* | | | Remember to add schema file to listErik Johnston2015-01-301-0/+1
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into rejections_storageErik Johnston2015-01-301-1/+10
|\ \ \ \ | |_|/ / |/| | |
| * | | Merge pull request #37 from matrix-org/client_v2_filterErik Johnston2015-01-301-1/+3
| |\ \ \
| | * \ \ Merge changes from developMark Haines2015-01-291-0/+40
| | |\ \ \
| | * | | | Created schema deltaPaul "LeoNerd" Evans2015-01-271-1/+1
| | * | | | Initial stab at real SQL storage implementation of user filter definitionsPaul "LeoNerd" Evans2015-01-271-0/+1
| | * | | | Move storage of user filters into real datastore layer; now have to mock it o...Paul "LeoNerd" Evans2015-01-271-1/+2
| | | |_|/ | | |/| |
| * | | | Add room member count condition and default rule to make a noise on rooms of ...David Baker2015-01-301-1/+4
| | |/ / | |/| |
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into rejections_storageErik Johnston2015-01-301-0/+40
|\| | | | |_|/ |/| |
| * | Move pushers delta to v12 and bump schema versionDavid Baker2015-01-281-1/+1
| * | Add brackets to make get room name / alias workDavid Baker2015-01-261-2/+2
| * | oops, this is not its own schema fileDavid Baker2015-01-221-1/+0
| * | Oops: second part of commit dc938606David Baker2015-01-221-0/+3
| * | Send room name and first alias in notification poke.David Baker2015-01-151-0/+35
| * | Merge branch 'develop' into pushersDavid Baker2015-01-131-5/+3
| |\|
| * | Merge branch 'develop' into pushersDavid Baker2014-12-181-129/+70
| |\ \
| * | | schema version is now 10David Baker2014-12-181-1/+1
| * | | ...and bump SCHEMA_VERSIONDavid Baker2014-12-181-1/+1
| * | | Merge branch 'develop' into pushersDavid Baker2014-12-021-16/+43
| |\ \ \
| * \ \ \ Merge branch 'develop' into pushersDavid Baker2014-11-201-1/+1
| |\ \ \ \
| * | | | | Start creating a module to do generic notifications (just prints them to stdo...David Baker2014-11-191-2/+4
* | | | | | Add support for storing rejected events in EventContext and data storesErik Johnston2015-01-221-3/+8
| |_|_|_|/ |/| | | |
* | | | | Add delta and bump DB versionErik Johnston2015-01-061-1/+1
* | | | | Update copyright noticesMark Haines2015-01-061-1/+1
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into release-v0.6.0Erik Johnston2014-12-161-80/+0
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Merge branch 'release-v0.6.0' into developMark Haines2014-12-161-1/+13
| |\ \ \ \
| * | | | | Remove send_message since nothing was calling it. Remove Snapshot because onl...Mark Haines2014-12-161-80/+0
* | | | | | Use is_outlier() so that we don't get AttributeErrorErik Johnston2014-12-161-3/+1
| |/ / / / |/| | | |
* | | | | Do run all deltas up to missing delta 10Erik Johnston2014-12-161-4/+4
* | | | | Make failure to run appropraite upgrade scripts more helpful.Erik Johnston2014-12-161-0/+12
* | | | | Bump database versionErik Johnston2014-12-161-1/+1
|/ / / /
* | | | Update upgrade scriptErik Johnston2014-12-161-1/+1
* | | | Persist internal_metadataErik Johnston2014-12-161-0/+5
* | | | Kill off synapse.api.events.*Erik Johnston2014-12-161-10/+6
* | | | Use frozenutilsErik Johnston2014-12-151-2/+1
* | | | Fix bug where we ignored event_edge_hashes tableErik Johnston2014-12-151-1/+0
* | | | Store json as UTF-8 and not bytesErik Johnston2014-12-121-1/+1
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-111-1/+5
|\ \ \ \
| * \ \ \ Merge branch 'develop' into media_repositoryMark Haines2014-12-101-1/+1
| |\ \ \ \
| * \ \ \ \ Merge branch 'develop' into media_repositoryMark Haines2014-12-101-16/+43
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| * | | | | Get uploads working with new media repoMark Haines2014-12-021-1/+5
| | |_|_|/ | |/| | |
* | | | | Fix bug where we clobbered old state group valuesErik Johnston2014-12-101-1/+2
* | | | | Fix bug when uploading state with empty state_keyErik Johnston2014-12-101-1/+3
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-101-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | track replication destination health, and perform exponential back-off when s...Matthew Hodgson2014-12-071-1/+1
| | |/ / | |/| |
* | | | Try and figure out how and why signatures are being changed.Erik Johnston2014-12-101-10/+0
* | | | Change the way we implement get_events to be less suckyErik Johnston2014-12-091-17/+7
* | | | Start making more things use EventContext rather than event.*Erik Johnston2014-12-051-10/+13
* | | | Store full JSON of events in dbErik Johnston2014-12-011-0/+19
|/ / /
* | | Don't delete the entire current_state_events tableErik Johnston2014-11-261-1/+4
* | | Add update delta for schema changeErik Johnston2014-11-261-1/+1
* | | Correctly handle the case where we get an event for an unknown room, which tu...Erik Johnston2014-11-261-15/+39
|/ /
* | Use module loggers rather than the root logger. Exceptions caused by bad clie...Mark Haines2014-11-201-1/+1
* | Bump version, changelog and upgrade.rstErik Johnston2014-11-191-1/+1
|/
* Fix PDU and event signaturesMark Haines2014-11-141-2/+2
* Store all signatures on events rather than just dropping themErik Johnston2014-11-121-7/+8
* Fix bugs with invites/joins across federatiom.Erik Johnston2014-11-121-3/+11
* PEP8Erik Johnston2014-11-101-3/+4
* Tidy up some of the unused sql tablesErik Johnston2014-11-101-18/+3
* Fix joining over federationErik Johnston2014-11-071-0/+1
* Start implementing auth chainsErik Johnston2014-11-071-1/+11
* Amalgamate all power levels.Erik Johnston2014-11-061-12/+0
* Implement new replace_state and changed prev_stateErik Johnston2014-11-061-23/+69
* FormattingErik Johnston2014-11-031-1/+4
* Sign evnetsErik Johnston2014-10-311-0/+6
* Make prev_event signing work again.Erik Johnston2014-10-311-6/+5
* Remove more references to dead PDU tablesErik Johnston2014-10-311-9/+0
* Remove PDU tables.Erik Johnston2014-10-311-59/+1
* Start filling out and using new events tablesErik Johnston2014-10-291-19/+26
* Don't reference PDU when persisting eventErik Johnston2014-10-281-2/+3
* Begin implementing all the PDU storage stuff in Events landErik Johnston2014-10-281-17/+55
* Add transaction level logging and timing information. Add a _simple_delete me...Erik Johnston2014-10-281-1/+2
* Merge branch 'event_signing' of github.com:matrix-org/synapse into federation...Erik Johnston2014-10-271-7/+44
|\
| * Merge branch 'develop' into event_signingMark Haines2014-10-271-4/+5
| |\
| * \ Merge branch 'develop' into event_signingMark Haines2014-10-171-0/+2
| |\ \
| * | | Hash the same content covered by the signature when referencing previous PDUs...Mark Haines2014-10-171-1/+8
| * | | Include hashes of previous pdus when referencing themMark Haines2014-10-161-6/+14
| * | | Sign outgoing PDUs.Mark Haines2014-10-161-3/+4
| * | | persist hashes and origin signatures for PDUsMark Haines2014-10-151-1/+20
* | | | Merge branch 'develop' of github.com:matrix-org/synapse into federation_autho...Erik Johnston2014-10-271-4/+7
|\ \ \ \ | | |_|/ | |/| |
| * | | Wrap preparing the database in a transaction. Otherwise it will take many sec...Mark Haines2014-10-241-3/+4
| * | | Bump database version number.Erik Johnston2014-10-171-1/+1
| | |/ | |/|
| * | keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating ...Mark Haines2014-10-171-0/+2
| |/
* / Begin implementing state groups.Erik Johnston2014-10-141-1/+5
|/
* Merge branch 'develop' into server2server_signingMark Haines2014-09-301-6/+47
|\
| * pyflakes cleanupErik Johnston2014-09-301-1/+1
| * SYN-48: Delete dead codeErik Johnston2014-09-291-26/+0
| * SYN-48: Implement WHOIS rest servletErik Johnston2014-09-291-2/+38
| * SYN-48: Track User-Agents as well as IPs for client devices.Erik Johnston2014-09-291-2/+4
| * Track the IP users connect with. Add an admin column to users table.Erik Johnston2014-09-261-1/+11
| * Merge branch 'deletions' of github.com:matrix-org/synapse into developErik Johnston2014-09-251-4/+22
| |\
| | * Add LIMIT to scalar subqueryErik Johnston2014-09-251-1/+2
| | * Rename deletions to redactionsErik Johnston2014-09-241-11/+12
| | * Make deleting deletes not undeleteErik Johnston2014-09-241-14/+4
| | * Fix bug where we didn't correctly pull out the event_id of the deletionErik Johnston2014-09-241-1/+5
| | * Add v4 deltas to current sql.Erik Johnston2014-09-241-0/+1
| | * Rename 'pruned' to 'pruned_because'Erik Johnston2014-09-231-1/+1
| | * Make sure we don't persist the 'pruned' keyErik Johnston2014-09-231-1/+1
| | * Add m.room.deletion. If an event is deleted it will be returned to clients 'p...Erik Johnston2014-09-231-4/+25
| * | Fix bug where we tried to insert state events with null state keyErik Johnston2014-09-251-1/+2
| |/
* / SYN-75 Verify signatures on server to server transactionsMark Haines2014-09-301-0/+1
|/
* Merge branch 'develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-171-5/+10
|\
| * Correctly handle receiving 'missing' Pdus from federation, rather than just d...Erik Johnston2014-09-151-5/+10
* | Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-151-1/+7
|\|
| * Fix bug where we no longer stored user_id on PdusErik Johnston2014-09-121-1/+7
* | Revert recent changes to RoomMemberStorePaul "LeoNerd" Evans2014-09-121-1/+1
* | Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_poolPaul "LeoNerd" Evans2014-09-121-2/+2
* | Rename _store_room_member_txn to _store_room_member_from_event_txn so we can ...Paul "LeoNerd" Evans2014-09-111-1/+1