Mercurial > hg > orthanc-tests
view PerfsDb/DbType.py @ 425:644a3248b69d Orthanc-1.9.6
Added tag Orthanc-1.9.5 for changeset 934f505677da
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Jul 2021 11:00:17 +0200 |
parents | df1f9946571c |
children |
line wrap: on
line source
from enum import Enum class DbType(Enum): Sqlite = 1 PG9 = 2 MySQL = 3 MSSQL = 4 PG10 = 5 PG11 = 5 SqlitePlugin = 6 def isPG(self): return self.value in [DbType.PG9.value, DbType.PG10.value, DbType.PG11.value] def isSqlite(self): return self.value in [DbType.Sqlite.value, DbType.SqlitePlugin.value] def isServer(self): return not self.isSqlite()