GithubHelp home page GithubHelp logo

Comments (4)

jxs avatar jxs commented on August 10, 2024

Hi, have you enabled the desired driver as a feature? eg refinery = { version = "0.2", features = ["rusqlite"]} ?
but you are right, you are not the first one to have this setback, i am going to update the doc

from refinery.

sbrl avatar sbrl commented on August 10, 2024

Ah, that did the trick! Thanks @jxs. That makes me feel better - glad I'm not the only one haha

Does refinery have an option to support r2d2_sqlite for connection pooling? I'm now getting this error:

]error[E0277]: the trait bound `&mut r2d2::PooledConnection<r2d2_sqlite::SqliteConnectionManager>: refinery_migrations::traits::sync::Query<std::vec::Vec<refinery_migrations::AppliedMigration>>` is not satisfied
  --> wopplebloxd/src/db/migrations.rs:23:44
   |
23 |         embedded::migrations::runner().run(&mut connection);
   |                                            ^^^^^^^^^^^^^^^ the trait `refinery_migrations::traits::sync::Query<std::vec::Vec<refinery_migrations::AppliedMigration>>` is not implemented for `&mut r2d2::PooledConnection<r2d2_sqlite::SqliteConnectionManager>`
   |
   = note: required because of the requirements on the impl of `refinery::Migrate` for `&mut r2d2::PooledConnection<r2d2_sqlite::SqliteConnectionManager>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `wopplebloxd`.

To learn more, run the command again with --verbose.

I'm having to use connection pooling here because I'm setting up a web server with actix, and I'm storing my db connection in my global state object, which is access by multiple threads I assume that actix is spawning.

from refinery.

jxs avatar jxs commented on August 10, 2024

can you open a separate issue with that feature request? I closed this one since it has been addressed

from refinery.

sbrl avatar sbrl commented on August 10, 2024

Sure thing - opened #79 @jxs

from refinery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.