Skip to content

v0.2.1-alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@mjovanc mjovanc released this 25 Mar 15:51
· 567 commits to master since this release

Second release of Njord is now released! Artifacts are uploaded to crates.io. New features include:

  • INSERT and SELECT statements are quite done for minimalistic usage. We will add more functionality to SELECT in the coming versions. Currently things that are missing is JOIN and nested WHERE 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.