Skip to content

Commit 27ba6cd

Browse files
Improve interface
1 parent 1849c39 commit 27ba6cd

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

tarantool/connection.py

+5-11
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ def __subclasshook__(cls, subclass):
9292
callable(subclass.eval) and
9393
hasattr(subclass, 'replace') and
9494
callable(subclass.replace) and
95-
hasattr(subclass, 'authenticate') and
96-
callable(subclass.authenticate) and
9795
hasattr(subclass, 'insert') and
9896
callable(subclass.insert) and
9997
hasattr(subclass, 'delete') and
@@ -123,23 +121,19 @@ def connect(self):
123121
raise NotImplementedError
124122

125123
@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):
131125
raise NotImplementedError
132126

133127
@abc.abstractmethod
134-
def replace(self, space_name, values):
128+
def eval(self, expr, *args, **kwargs):
135129
raise NotImplementedError
136130

137131
@abc.abstractmethod
138-
def authenticate(self, user, password):
132+
def replace(self, space_name, values, **kwargs):
139133
raise NotImplementedError
140134

141135
@abc.abstractmethod
142-
def insert(self, space_name, values):
136+
def insert(self, space_name, values, **kwargs):
143137
raise NotImplementedError
144138

145139
@abc.abstractmethod
@@ -163,7 +157,7 @@ def select(self, space_name, key, **kwargs):
163157
raise NotImplementedError
164158

165159
@abc.abstractmethod
166-
def execute(self, query, params):
160+
def execute(self, query, params, **kwargs):
167161
raise NotImplementedError
168162

169163

0 commit comments

Comments
 (0)