v0.2.1-alpha
Pre-release
Pre-release
Second release of Njord is now released! Artifacts are uploaded to crates.io. New features include:
INSERT
andSELECT
statements are quite done for minimalistic usage. We will add more functionality toSELECT
in the coming versions. Currently things that are missing isJOIN
and nestedWHERE
and more advanced features overall.- Create a in-memory db with SQLite.
- New attribute added for the procedural macro
#[table_name = "products"]
so you can define the exact generated table name in the database. - With
INSERT
comes a convenient QueryBuilder so you can now do the following:
let result: Result<Vec<User>> = sqlite::select(conn, columns)
.from(User::default())
.where_clause(where_condition)
.order_by(order_by)
.group_by(group_by)
.having(having_condition)
.build();
Read the docs of usage: https://docs.rs/njord/0.2.1/njord
Note that this release is very limited and unstable for serious usage. Things will break in the upcoming release iterations. Use it with caution.