diff options
| author | Barry Warsaw | 2016-07-29 19:28:46 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-07-29 19:28:46 -0400 |
| commit | febb5289e82c4424cdbcc2297e967bd894cbc8cf (patch) | |
| tree | bd71f4cbf6988049ac4d5dd65ceb7d5cc51902e7 /src/mailman/database/helpers.py | |
| parent | 90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (diff) | |
| download | mailman-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.py | 5 |
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) |
