class Connection
¶
-
class
tarantool.connection.
Connection
(host, port, user=None, password=None, socket_timeout=None, reconnect_max_attempts=10, reconnect_delay=0.1, connect_now=True, encoding=None, call_16=False, connection_timeout=None)¶ Represents connection to the Tarantool server.
This class is responsible for connection and network exchange with the server. Also this class provides low-level interface to data manipulation (insert/delete/update/select).
Initialize a connection to the server.
Parameters: - creates network connection.
- if False than you have to call connect() manualy.
-
call
(func_name, *args)¶ Execute CALL request. Call stored Lua function.
Parameters: Return type: Response instance
-
close
()¶ Close connection to the server