diesel
is an in-development ORM (Object-Relational
Mapper) for Rust. It aims to be a safe and efficient layer between your
business logic and the database. In the words of its authors:
Diesel gets rid of the boilerplate for database interaction and eliminates
runtime errors, without sacrificing performance. It takes full advantage
of Rust's type system to create a low overhead query builder that
"feels like Rust".
The primary author of diesel
- Sean Griffin -
is also a Ruby on Rails committer and maintainer of Active Record, the ORM used
in Rails. So when I saw his name in relation to a Rust ORM, I knew I have
to check it out. Sean also gave a great talk at
PolyConf 16 about ownership semantics (not only in
Rust) - Owning Ownership.
Czytaj dalej »
Important note: this article is outdated! Go to http://zsiciarz.github.io/24daysofrust/ for a recent version of all of 24 days of Rust articles. The blogpost here is kept as it is for historical reasons.
Today I'm revisiting the topic of database access in Rust. I mentioned PostgreSQL client library a week ago. This time we'll move from SQL to NoSQL land. Our focus for today will be Redis - a data structure server. The redis crate is a client library to access Redis from Rust.
Czytaj dalej »
Important note: this article is outdated! Go to http://zsiciarz.github.io/24daysofrust/ for a recent version of all of 24 days of Rust articles. The blogpost here is kept as it is for historical reasons.
Yes, I'm biased. PostgreSQL is my favorite SQL database and the upcoming 9.4 release makes me even more excited. There is already a pure Rust driver for PostgreSQL - the postgres crate which will be the subject of today's article.
Czytaj dalej »