@@ -92,8 +92,6 @@ def __subclasshook__(cls, subclass):
92
92
callable (subclass .eval ) and
93
93
hasattr (subclass , 'replace' ) and
94
94
callable (subclass .replace ) and
95
- hasattr (subclass , 'authenticate' ) and
96
- callable (subclass .authenticate ) and
97
95
hasattr (subclass , 'insert' ) and
98
96
callable (subclass .insert ) and
99
97
hasattr (subclass , 'delete' ) and
@@ -123,23 +121,19 @@ def connect(self):
123
121
raise NotImplementedError
124
122
125
123
@abc .abstractmethod
126
- def call (self , func_name , * args ):
127
- raise NotImplementedError
128
-
129
- @abc .abstractmethod
130
- def eval (self , expr , * args ):
124
+ def call (self , func_name , * args , ** kwargs ):
131
125
raise NotImplementedError
132
126
133
127
@abc .abstractmethod
134
- def replace (self , space_name , values ):
128
+ def eval (self , expr , * args , ** kwargs ):
135
129
raise NotImplementedError
136
130
137
131
@abc .abstractmethod
138
- def authenticate (self , user , password ):
132
+ def replace (self , space_name , values , ** kwargs ):
139
133
raise NotImplementedError
140
134
141
135
@abc .abstractmethod
142
- def insert (self , space_name , values ):
136
+ def insert (self , space_name , values , ** kwargs ):
143
137
raise NotImplementedError
144
138
145
139
@abc .abstractmethod
@@ -163,7 +157,7 @@ def select(self, space_name, key, **kwargs):
163
157
raise NotImplementedError
164
158
165
159
@abc .abstractmethod
166
- def execute (self , query , params ):
160
+ def execute (self , query , params , ** kwargs ):
167
161
raise NotImplementedError
168
162
169
163
0 commit comments