diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-23 16:14:16 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-23 16:15:03 +0100 |
commit | 73cf63784b90ea194eb867aafe3f39203b7ae029 (patch) | |
tree | ba5c7913ffa9aef3a1e80d91a48a9f877e16f2ac /synapse/storage/data_stores | |
parent | Move persist_events out from main data store. (diff) | |
download | synapse-73cf63784b90ea194eb867aafe3f39203b7ae029.tar.xz |
Add DataStores and Storage classes.
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r-- | synapse/storage/data_stores/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/storage/data_stores/__init__.py b/synapse/storage/data_stores/__init__.py index 56094078ed..cb184a98cc 100644 --- a/synapse/storage/data_stores/__init__.py +++ b/synapse/storage/data_stores/__init__.py @@ -12,3 +12,15 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + + +class DataStores(object): + """The various data stores. + + These are low level interfaces to physical databases. + """ + + def __init__(self, main_store, db_conn, hs): + # Note we pass in the main store here as workers use a different main + # store. + self.main = main_store |