SeaQL / sea-query

🔱 A dynamic SQL query builder for MySQL, Postgres and SQLite
https://www.sea-ql.org
Other
1.12k stars 182 forks source link

Error running sqlx_any in example after upgrading sqlx to 0.7 #752

Open EthanYuan opened 7 months ago

EthanYuan commented 7 months ago

Description

The example sqlx_any does not work after this PR #652

Steps to Reproduce

  1. ```bash cd examples/sqlx_any ```
  2. cargo run -- sqlite

Expected Behavior

Like described in the readme.

Actual Behavior

thread 'main' panicked at 'No drivers installed. Please see the documentation in `sqlx::any` for details.', /home/ethan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.3/src/any/driver.rs:142:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reproduces How Often

always

Versions

tag 0.30.7

tyt2y3 commented 7 months ago

I think it should work with MySQL IIRC. sqlx 0.7 removed a few features from the Any driver. If you can figure out the problem, a PR would be appreciated, or we might be removing the example in the end.