Crate ts_sql_helper_lib

Source
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
SqlDateTime
Wrapper for jiff::civil::DateTime
SqlTime
Wrapper for jiff::civil::Time
SqlTimestamp
Wrapper for jiff::Timestamp

Enums§

MigrationError
Error variants for migrating a database.

Traits§

FromRow
Convert a row to an instance of self.
ParseFromRow
Parse a type from a row.
SqlError
Trait for mapping certain postgres errors.

Functions§

perform_migrations
Runs the migrations in current_dir()/migrations/*.sql on the client, migrations are executed in name order.