Expand description
Helper utilities for working with SQL.
Re-exports§
pub use postgres;pub use postgres_protocol;pub use postgres_types;
Structs§
- SqlDate
- Wrapper for
jiff::civil::Date - SqlDate
Time - Wrapper for
jiff::civil::DateTime - SqlTime
- Wrapper for
jiff::civil::Time - SqlTimestamp
- Wrapper for
jiff::Timestamp
Enums§
- Migration
Error - Error variants for migrating a database.
Traits§
- FromRow
- Convert a row to an instance of self.
- Parse
From Row - Parse a type from a row.
- SqlError
- Trait for mapping certain postgres errors.
Functions§
- perform_
migrations - Runs the migrations in
current_dir()/migrations/*.sqlon the client, migrations are executed in name order.