Comments (4)
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.
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.
can you open a separate issue with that feature request? I closed this one since it has been addressed
from refinery.
from refinery.
Related Issues (20)
- Update broken Flyway documentation link HOT 1
- Support a function similar to flyway baseline HOT 1
- Wrap embedded migrations with enums HOT 8
- Get final database schema after all migrations are run HOT 3
- Current rusqlite version (0.30.0) not supported? HOT 1
- serde properties of Config should be under a feature gate along with Toml serde impl HOT 2
- New Files are not Detected by embed_migrations HOT 2
- Sqlx no longer supported because Migrate no longer implemented by Config HOT 3
- refinery_cli: ERROR: cannot insert multiple commands into a prepared statement HOT 7
- Add support for rusqlite 0.31.0 HOT 4
- refinery_cli: Error: `error applying update`, `db error: ERROR: relation "refinery_schema_history" does not exist` HOT 5
- Unreproducible release for refinery-core 0.8.13 HOT 2
- Changelog lists release 0.8.14 twice HOT 1
- Add run_iter_async HOT 2
- Build error with tiberius without serde HOT 2
- Allow specifying database schema on migrations (MSSQL database) HOT 1
- Missing math functions for SQLite HOT 3
- Allow up/down migrations HOT 3
- divergent migration handling is missleading HOT 3
- MySQL migration succeeds despite syntax error in `.sql` file HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refinery.