comparison 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
comparison
equal deleted inserted replaced
157:ac14100ffbd7 158:df1f9946571c
4 Sqlite = 1 4 Sqlite = 1
5 PG9 = 2 5 PG9 = 2
6 MySQL = 3 6 MySQL = 3
7 MSSQL = 4 7 MSSQL = 4
8 PG10 = 5 8 PG10 = 5
9 PG11 = 5
10 SqlitePlugin = 6
11
12 def isPG(self):
13 return self.value in [DbType.PG9.value, DbType.PG10.value, DbType.PG11.value]
14
15 def isSqlite(self):
16 return self.value in [DbType.Sqlite.value, DbType.SqlitePlugin.value]
17
18 def isServer(self):
19 return not self.isSqlite()