# db-meta-derive db-meta-derive is a wrapper around PostgresSOL using tokio-postgres. ## Examples ### Schema ```rust #[derive(PostgresMapper, Deserialize, PostgresMeta)] #[pg_mapper(table = "test")] struct Test { #[id] id: i64, title: Option, create_time: Option, update_time: Option, } ``` ### Usage ```rust pub fn test() { let meta = Test::meta(); println!("{:?}", meta); // ("test", [("id", "bigserial primary key", 0, "", true), ("title", "varchar", 0, "", false), ("create_time", "timestamp", 0, "", false), ("update_time", "timestamp", 0, "", false)]) } ```