Expand description
The goal is to create a simple, easy-to-use ORM for PostgreSQL databases.
Re-exports
pub use tokio_postgres as pg;
Macros
- Registers a
Modelwith the database by creating a corresponding table.
Structs
- A
MakeTlsConnectandTlsConnectimplementation which simply returns an error. - A row of data returned from the database by a query.
Enums
Traits
- This is the trait which you should derive for your model structs.
Functions
- Get a reference to the client, if a connection has been made. Returns
Err(Error::NotConnected)otherwise. - Connect the
pg_wormclient to a postgres database. - Register your model with the database. This creates a table representing your model.
Attribute Macros
Derive Macros
- Automatically implement
Modelfor your struct.