module tarantool.request
¶
Request types definitions. For internal use only, there is no API to send pre-build request objects.
- class tarantool.request.Request(conn)¶
Represents a single request to the server in compliance with the Tarantool protocol. Responsible for data encapsulation and building the binary packet to be sent to the server.
This is the abstract base class. Specific request types are implemented in the inherited classes.
- Parameters:
conn¶ (
Connection
) – Request sender.
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestAuthenticate(conn, salt, user, password, auth_type='chap-sha1')¶
Represents AUTHENTICATE request.
- Parameters:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestCall(conn, name, args, call_16)¶
Represents CALL request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestDelete(conn, space_no, index_no, key)¶
Represents DELETE request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestEval(conn, name, args)¶
Represents EVAL request.
- Parameters:
conn¶ (
Connection
) – Request sender.name¶ – Lua expression.
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestExecute(conn, sql, args)¶
Represents EXECUTE SQL request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestInsert(conn, space_no, values)¶
Represents INSERT request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestOK(conn, sync)¶
Represents OK acknowledgement.
- Parameters:
conn¶ (
Connection
) – Request sender.
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestPing(conn)¶
Represents a ping request with the empty body.
- Parameters:
conn¶ (
Connection
) – Request sender.
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestProtocolVersion(conn, protocol_version, features)¶
Represents ID request: inform the server about the protocol version and features connector support.
- Parameters:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestReplace(conn, space_no, values)¶
Represents REPLACE request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestSelect(conn, space_no, index_no, key, offset, limit, iterator)¶
Represents SELECT request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestUpdate(conn, space_no, index_no, key, op_list)¶
Represents UPDATE request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- class tarantool.request.RequestUpsert(conn, space_no, index_no, tuple_value, op_list)¶
Represents UPSERT request.
- Parameters:
- Raise:
- header(length)¶
Pack total (header + payload) length info together with header itself.
- tarantool.request.packer_factory(conn)¶
Build packer to pack request.
- Parameters:
conn¶ (
Connection
) – Request sender.- Return type: