pub struct Connection { /* private fields */ }
This is supported on crate feature sync only.
Expand description

A database connection over Skyhash/TCP

Implementations

Create a new connection to a Skytable instance hosted on host and running on port

This function will write a Query to the stream and read the response from the server. It will then determine if the returned response is complete or incomplete or invalid and return an appropriate variant of Error wrapped in IoResult for any I/O errors that may occur

Panics

This method will panic:

  • if the Query supplied is empty (i.e has no arguments) This function is a subroutine of run_query used to parse the response packet

Runs a pipelined query. See the Pipeline documentation for a guide on usage

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

This is supported on crate feature sync only.

Get the number of keys present in the database

This is supported on crate feature sync only.

Deletes a single or a number of keys Read more

This is supported on crate feature sync only.

Checks if a key (or keys) exist(s) Read more

This is supported on crate feature sync only.

Removes all the keys present in the database

This is supported on crate feature sync only.

Get the value of a key Read more

This is supported on crate feature sync only.

Get the length of a key Read more

This is supported on crate feature sync only.

Returns a vector of keys Read more

This is supported on crate feature sync only.

Get multiple keys Read more

This is supported on crate feature sync only.

Creates a snapshot Read more

This is supported on crate feature sync only.

Sets the value of multiple keys and values and returns the number of keys that were set Read more

This is supported on crate feature sync only.

Updates the value of multiple keys and values and returns the number of keys that were updated Read more

This is supported on crate feature sync only.

Consumes a key if it exists Read more

This is supported on crate feature sync only.

Consumes the provided keys if they exist Read more

This is supported on crate feature sync only.

Deletes all the provided keys if they exist or doesn’t do anything at all. This method will return true if all the provided keys were deleted, else it will return false Read more

This is supported on crate feature sync only.

Set the value of a key Read more

This is supported on crate feature sync only.

Sets the value of all the provided keys or does nothing. This method will return true if all the keys were set or will return false if none were set Read more

This is supported on crate feature sync only.

Updates the value of all the provided keys or does nothing. This method will return true if all the keys were updated or will return false if none were updated. Read more

This is supported on crate feature sync only.

Update the value of a key Read more

This is supported on crate feature sync only.

Updates or sets all the provided keys and returns the number of keys that were set Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

This is supported on crate feature sync only.

This function switches to the provided entity. Read more

This is supported on crate feature sync only.

Create the provided keyspace Read more

This is supported on crate feature sync only.

Create a table from the provided configuration

This is supported on crate feature sync only.

Drop the provided table Read more

This is supported on crate feature sync only.

Drop the provided keyspace Read more

This is supported on crate feature sync only.

Check what keyspace this connection is currently connected to

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.