Akita is a mini framework for MySQL.
You may be looking for:
Click to show Cargo.toml.
Run this code in the playground.
```toml [dependencies]
akita = { version = "0.2.0"] }
```
```rust use akita::; use akita::prelude::;
/// Annotion Support: Table、table_id、field (name, exist)
struct SystemUser {
#[field = "name"]
id: Option
fn main() {
let dburl = String::from("mysql://root:password@localhost:3306/akita");
let mut pool = Pool::new(AkitaConfig{ maxsize: None, url: dburl, loglevel: None }).unwrap();
let mut em = pool.entity_manager().expect("must be ok");
let mut wrap = UpdateWrapper::new();
wrap.eq(true, "username", "'ussd'");
match em.count::
Table
- to make Akita work with structstable_id
- to make Table Identfield
- to make struct field with own database.name
- work with column, make the table's field name. default struct' field name.exist
- ignore struct's field with table. default true.Option<T>
u8, u32, u64
i32, i64
usize
bool
f32, f64
str, String
serde_json::Value
NaiveDate, NaiveDateTime
To setup the development envrionment run cargo run
.
MrPan <1049058427@qq.com>
Akita is a personal project. At the beginning, I just like Akita dog because of my hobbies. I hope this project will grow more and more lovely. Many practical database functions will be added in the future. I hope you can actively help this project grow and put forward suggestions. I believe the future will be better and better.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Akita by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.