Rocket: Using Rocket with a database

Created on 1 Jan 2017  路  4Comments  路  Source: SergioBenitez/Rocket

Reading through the guide, I don't see any documentation on using Rocket with database libraries (like Diesel). In particular, it's not clear how to pass the connection object to each request handler. I'd like to see an example of how this could be done.

question

Most helpful comment

Follow along with us in #53!

I'll likely write a quick example when I get time on Monday and send a merge request in.

All 4 comments

Follow along with us in #53!

I'll likely write a quick example when I get time on Monday and send a merge request in.

Cool, thanks for the pointer! I'll close this issue in favor of that one.

Really need example or document connect with database.

@netroby The todo and raw_sqlite examples illustrate two ways to connect to a database.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sphinxc0re picture sphinxc0re  路  3Comments

haheute picture haheute  路  4Comments

denysvitali picture denysvitali  路  3Comments

incker picture incker  路  3Comments

marcusball picture marcusball  路  3Comments