qoo

Latest Version Docs

Query Object Oriented.
Pronunciation is Kuu.

demo

```rust use qoo::base::; use qoo::select::; use qoo::insert::; use qoo::update::; use qoo::delete::*;

fn main() { let selectquery = SelectBuilder::select(["col0", "col1"].tovec()) .columns(["col2", "col3"].tovec()) .from("table1") .wheres("id >= 100"); asserteq!( selectquery.tosql(), "select col0, col1, col2, col3 from table1 where id >= 100".to_string() );

let insert_query =
    InsertBuilder::insert("test1")
        .columns(["col0", "col1"].to_vec())
        .value("'xxx'")
        .value("'yyy'");
assert_eq!(
    insert_query.to_sql(),
    "insert into test1 (col0, col1) values ('xxx', 'yyy')"
);

let update_query =
    UpdateBuilder::update("test1")
        .set("col1='aaa'")
        .set("col2='bbb'")
        .wheres("id >= 11");
assert_eq!(
    update_query.to_sql(),
    "update test1 set col1='aaa', col2='bbb' where id >= 11".to_string()
);

let delete_query =
    DeleteBuilder::delete()
        .from("test1")
        .wheres("id >= 100");
assert_eq!(
    delete_query.to_sql(),
    "delete from test1 where id >= 100".to_string()
);

}

```

inspired by