Problematic update #1991
Replies: 2 comments 10 replies
-
You are referring to rocket [global.databases]
datatypes={url="mysql://<user>:<password>@<host>/<database>"} Note that this is an example for mysql only, for different types of databases you might have to adapt the url string. You can also define the database url as a environment variable, e.g. ROCKET_DATABASES={datatypes={url="mysql://<user>:<password>@<host>/<database>"}} |
Beta Was this translation helpful? Give feedback.
-
Could you post up:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I have an application that was locked onto a git commit of rocket.
I am updating it to the latest release on crates.io
I had to refactor a whole lotta of code.
Currently, i have a problem with the database fairing, whatever that means.
I assume that is dependency injection.
I get the error "missing database fairing for
MyDB
".This shouldn't happen because i am actually adding it to the app, as you can see from the code below.
I also can see this when the application is starting.
Beta Was this translation helpful? Give feedback.
All reactions