parsql_core/
lib.rs

1pub trait Insertable {
2    fn table_name() -> &'static str;
3    fn columns() -> &'static [&'static str];
4}
5
6pub trait Updateable {
7    fn table_name() -> &'static str;
8    fn update_clause() -> &'static [&'static str];
9    fn where_clause() -> &'static str;
10}
11
12pub trait Deleteable {
13    fn table_name() -> &'static str;
14    fn where_clause() -> &'static str;
15}
16
17pub trait Queryable {
18    fn table_name() -> &'static str;
19    fn select_clause() -> &'static [&'static str];
20    fn where_clause() -> &'static str;
21}
22