pub struct MySqlStore { /* private fields */ }
Expand description

A pooled Store for the MySQL database.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The inner store used by this store. This is mainly useful for wrapping stores while keeping the same requirements for the types. For most stores this should be Self. Read more

The Error type returned by the methods of this store.

Connects to the store using the given uri. Read more

Initializes the store for storing data of the type T. If create was not called before calling delete, get, get_all, get_one or insert on the store, the operation might fail. Read more

Deletes all items T matching the query Q from the store. Read more

Returns all items T matching the query Q from the store. If no matching items are found an empty Vec is returned. Read more

Returns all items T from the store. If no items are found an empty Vec is returned. Read more

Returns an item T matching the query Q from store. If no matching item is found None is returned. Read more

Inserts a new item T into the store. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Creates a new DataDescriptor for the StoreData type T if T::Descriptor implements Default. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.