atmosphere 0.4.0

A lightweight SQL framework for sustainable database reliant systems
Documentation
# Create

The [`Create`] trait allows you to create new rows in your tables. Here is an example
of how to create a user, given that you have it annotated with [`table`]:

```rust
# extern crate atmosphere;
# extern crate sqlx;
# extern crate tokio;
# use atmosphere::prelude::*;
#[derive(Debug, PartialEq)]
#[table(schema = "public", name = "user")]
struct User {
    #[sql(pk)]
    id: i32,
    name: String,
    #[sql(unique)]
    email: String,
}

# async fn test() -> std::result::Result<(), Box<dyn std::error::Error>> {
let database = std::env::var("DATABASE_URL").unwrap();
let pool = atmosphere::Pool::connect(&database).await?;

let mut user = User {
    id: 0,
    name: "demo".to_owned(),
    email: "some@email.com".to_owned(),
};

user.create(&pool).await?;
# Ok(())
# }
# fn main() {}
```

[`table`]: https://docs.rs/atmosphere/latest/atmosphere/attr.table.html
[`Create`]: https://docs.rs/atmosphere/latest/atmosphere/trait.Create.html