We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37cd734 commit 0760238Copy full SHA for 0760238
pycovenantsql/__init__.py
@@ -15,7 +15,7 @@
15
16
threadsafety = 1
17
apilevel = "2.0"
18
-paramstyle = "pyformat"
+paramstyle = "format"
19
20
21
class DBAPISet(frozenset):
pycovenantsql/ext/peewee.py
@@ -0,0 +1,14 @@
1
+import pycovenantsql
2
+from peewee import Database, ImproperlyConfigured
3
+
4
+class CovenantSQLDatabase(Database):
5
+ param = '%s'
6
+ quote = '``'
7
+ def __init__(self, database, **kwargs):
8
+ super(CovenantSQLDatabase, self).__init__(database, **kwargs)
9
10
+ def _connect(self, **kwargs):
11
+ if pycovenantsql is None:
12
+ raise ImproperlyConfigured('pycovenantsql driver not installed!')
13
+ conn = pycovenantsql.connect(database=self.database, **self.connect_params)
14
+ return conn
0 commit comments