Build Status codecov

Rust-Postgres-Interval

A interval type for the postgres driver.

Contributing

There is a separate document on how to contribute to this repo here

Overview

Rust-Postgres-Interval is dedicated datatype for the postgres interval type.

```rust extern crate pg_interval;

use pg_interval::Interval;

fn main() { let interval = Interval::frompostgres( "1 years 1 months 1 days 1 hours" ).unwrap(); let output = interval.toiso8601(); asserteq!(String::from("P1Y1M1DT1H"), output); } ```

Requirements

Roadmap to 1.0.0