#nickel #diesel #middleware #connection-pool

nickel-diesel

Nickel middleware providing a diesel ORM with r2d2 connection pooling

12 releases (breaking)

Uses old Rust 2015

0.9.0 Jan 3, 2018
0.7.0 Mar 17, 2017
0.6.1 Dec 30, 2022
0.4.0 Oct 12, 2016
0.1.1 Mar 7, 2016

#2629 in Database interfaces

42 downloads per month

MIT license

6KB
65 lines

nickel-diesel Version Status Doc

Nickel middleware providing a diesel ORM with r2d2 connection pooling

Code originally by Robert Yokota as part of the Yeoman generator for AngularJS + Nickel project. Packaged by Andrew Straw.

example

Run an example server:

cargo run --example simple_sqlite_memory

Running the server will show

Listening on http://127.0.0.1:9001
Ctrl-C to shutdown server

The server can be tested with

curl http://localhost:9001/one

Dependencies

~39MB
~688K SLoC