Rocket, rusqlite and prepared statements

I want to try to store some rusqlite prepared statements in a Rocket shared managed state. Basically this example, but rather than managing a connection object, instead manage something like this:

struct MyState {
  conn: Connection,
  add_user_stmt: Statement,
  get_sess: Statement

Hang on -- just stumbled on CachedStatement, which seems not to be exactly what I'm looking for -- but close enough.

(Posting anyway for the archives -- hope it helps someone else in the future).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.