diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-14 13:53:20 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-14 13:53:20 +0100 |
commit | 58d83399663a080c123d2f112b4f4d84accbc638 (patch) | |
tree | 170dfcb466d14dc29276d809a8cda6a4e7f224bc /synapse/storage/engines | |
parent | Correctly increment the _next_id initially (diff) | |
download | synapse-58d83399663a080c123d2f112b4f4d84accbc638.tar.xz |
Add support for postgres instead of mysql. Change sql accourdingly. blob + varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS.
Diffstat (limited to 'synapse/storage/engines')
-rw-r--r-- | synapse/storage/engines/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/engines/__init__.py b/synapse/storage/engines/__init__.py index 29702be923..548d4e1b42 100644 --- a/synapse/storage/engines/__init__.py +++ b/synapse/storage/engines/__init__.py @@ -14,6 +14,7 @@ # limitations under the License. from .maria import MariaEngine +from .postgres import PostgresEngine from .sqlite3 import Sqlite3Engine import importlib @@ -22,6 +23,7 @@ import importlib SUPPORTED_MODULE = { "sqlite3": Sqlite3Engine, "mysql.connector": MariaEngine, + "psycopg2": PostgresEngine, } |