v0.2.1-alpha
Pre-release
Pre-release
Second release of Njord is now released! Artifacts are uploaded to crates.io. New features include:
INSERTandSELECTstatements are quite done for minimalistic usage. We will add more functionality toSELECTin the coming versions. Currently things that are missing isJOINand nestedWHEREand 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
INSERTcomes 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.