Crate pg_worm

source ·
Expand description

The goal is to create a simple, easy-to-use ORM for PostgreSQL databases.

Re-exports

Macros

  • Registers a Model with the database by creating a corresponding table.

Structs

  • A MakeTlsConnect and TlsConnect implementation 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_worm client to a postgres database.
  • Register your model with the database. This creates a table representing your model.

Attribute Macros

Derive Macros

  • Automatically implement Model for your struct.