chyabrung-cli 0.2.2

The `chy` command line tool for Chyabrung: scaffolding, dev server with hot reload, builds, generators, migrations and one-command deploys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! # Models: one Rust struct per database table
//!
//! A model describes the columns of a table and lets you query it:
//! `User::find(1)`, `Post::query().where_("published", true).get()`,
//! `post.save()`, `post.delete()`.
//!
//! - Create a new one with `chy make:model Comment -m` (`-m` also creates its
//!   migration in `migrations/`). The model is added to this file for you.
//! - The table itself is created by a migration, not by the model.
//! - Keep request handling out of here: that belongs in `controllers/`.

pub mod post;
pub mod user;

pub use post::Post;
pub use user::User;