diff PerfsDb/DbType.py @ 158:df1f9946571c

perfs db continued: tests working with tiny DBs on all setup but the sqliteplugin
author am@osimis.io
date Fri, 17 Aug 2018 11:58:26 +0200
parents f1a75985caa8
children
line wrap: on
line diff
--- a/PerfsDb/DbType.py	Thu Aug 16 17:14:05 2018 +0200
+++ b/PerfsDb/DbType.py	Fri Aug 17 11:58:26 2018 +0200
@@ -6,3 +6,14 @@
     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()
\ No newline at end of file