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: |
---|
Parameters: | schema (Schema or dict) – Data schema (see Developer guide and Schema) |
---|
Execute CALL request. Call stored Lua function.
Parameters: |
|
---|---|
Return type: | Response instance |
Close connection to the server
Execute PING request. Send empty request and receive empty response from server.
Returns: | response time in seconds |
---|---|
Return type: | float |
Create Space instance for particular space
Space instance encapsulates the identifier of the space and provides more convenient syntax for accessing the database space.
Parameters: | space_name (int or str) – identifier of the space |
---|---|
Return type: | Space instance |