Currently, reql is designed in a way that makes it very easy to integrate with any framework. The only object that needs to be passed around is the Connection. However, it doesn't carry the connection pool, itself. It only carries its ID, so it's very small. Because of that it implements Copy.
In Actix, like in any other framework, you should initiliase the connection in your main function to get the connection object. You can then copy the object around as app state, using App::with_state. See this example.
Currently,
reql
is designed in a way that makes it very easy to integrate with any framework. The only object that needs to be passed around is the Connection. However, it doesn't carry the connection pool, itself. It only carries its ID, so it's very small. Because of that it implementsCopy
.In Actix, like in any other framework, you should initiliase the connection in your main function to get the connection object. You can then copy the object around as app state, using
App::with_state
. See this example.