"The connection string ... has no supporting driver" #514
-
Hey there, I've had a lot of experience using ORM's in Javascript, this is my first step into it with Rust, so forgive me if I don't know several rust specific things. When trying to initialize my database with some starting migrations, I get the error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hey @roberte777, welcome to Rust! You need to enable the database feature and runtime. https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime |
Beta Was this translation helpful? Give feedback.
-
I can attest to the lack of precision in the docs. It took me a while to figure out I had to adjust Cargo.toml in the migration folder to specify runtime and db driver. I thought it was enough to stipulate it in the main crate's Cargo.toml. It worked perfectly afterwards. |
Beta Was this translation helpful? Give feedback.
Hey @roberte777, welcome to Rust!
You need to enable the database feature and runtime.
https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime