summaryrefslogtreecommitdiff
path: root/src/mailman/database/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-07-29 19:28:46 -0400
committerBarry Warsaw2016-07-29 19:28:46 -0400
commitfebb5289e82c4424cdbcc2297e967bd894cbc8cf (patch)
treebd71f4cbf6988049ac4d5dd65ceb7d5cc51902e7 /src/mailman/database/helpers.py
parent90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff)
downloadmailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.gz
mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.tar.zst
mailman-febb5289e82c4424cdbcc2297e967bd894cbc8cf.zip
Diffstat (limited to 'src/mailman/database/helpers.py')
-rw-r--r--src/mailman/database/helpers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mailman/database/helpers.py b/src/mailman/database/helpers.py
index f58d559c5..b1dc381df 100644
--- a/src/mailman/database/helpers.py
+++ b/src/mailman/database/helpers.py
@@ -28,6 +28,11 @@ def is_sqlite(bind):
@public
+def is_mysql(bind):
+ return bind.dialect.name == 'mysql'
+
+
+@public
def exists_in_db(bind, tablename, columnname=None):
md = sa.MetaData()
md.reflect(bind=bind)