High-level client for HandlerSocket.
This should be used in most cases except ones that you need fine-grained control over index management, low-level operations, etc. For such cases ReadSocket and WriteSocket can be used.
Constructor initializes both read and write sockets.
| Parameters: |
|
|---|
Finds rows that meet values with comparison operation in given db and table.
Returns a list of lists of pairs. First item in pair is field name, second is its value. For example, if two rows with two columns each are returned:
[[('field', 'first_row_value'), ('otherfield', 'first_row_othervalue')],
[('field', 'second_row_value'), ('otherfield', 'second_row_othervalue')]]
| Parameters: |
|
|---|---|
| Return type: | list of lists of tuples |
Inserts a single row into given table.
| Parameters: |
|
|---|---|
| Return type: | bool |
Update row(s) that meet conditions defined by operation, fields values in a given table.
| Parameters: |
|
|---|---|
| Return type: | int or list |
Increments row(s) that meet conditions defined by operation, fields values in a given table.
| Parameters: |
|
|---|---|
| Return type: | int or list |
Decrements row(s) that meet conditions defined by operation, fields values in a given table.
| Parameters: |
|
|---|---|
| Return type: | int or list |
Delete row(s) that meet conditions defined by operation, fields values in a given table.
| Parameters: |
|
|---|---|
| Return type: | int or list |
A wrapper over find() that gets a single row with a single field look up.
Returns a list of pairs. First item in pair is field name, second is its value.
If multiple result rows, different comparison operation or composite indexes are needed please use find() instead.
| Parameters: |
|
|---|---|
| Return type: | list of tuples |
Purges all read and write connections. All requests after that operation will open new connections, index caches will be cleaned too.