Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any_kind() not available #3155

Open
prabirshrestha opened this issue Mar 26, 2024 · 0 comments
Open

any_kind() not available #3155

prabirshrestha opened this issue Mar 26, 2024 · 0 comments
Labels

Comments

@prabirshrestha
Copy link

Bug Description

any_kind() is not available in Pool<Any> in v0.7.

Minimal Reproduction

A small code snippet or a link to a Github repo or Gist, with instructions on reproducing the bug.

[dependencies]
sqlx = { version = "0.7.4", features = ["any", "sqlite", "postgres", "mysql"] }
tokio = { version = "1.36.0", features = ["full"] }
use sqlx::{Any, Pool};

#[tokio::main]
async fn main() {
    let pool: Pool<Any> = Pool::connect("sqlite::memory:").await.unwrap();
    let kind = pool.any_kind();
}

Error:

error[E0599]: no method named `any_kind` found for struct `Pool` in the current scope
 --> src/main.rs:6:21
  |
6 |     let kind = pool.any_kind();
  |                     ^^^^^^^^ method not found in `Pool<Any>`

For more information about this error, try `rustc --explain E0599`.

Info

  • SQLx version: 0.7.4
  • SQLx features enabled: ["any", "sqlite", "postgres", "mysql"]
  • Database server and version: sqlite
  • Operating system: OSX
  • rustc --version: rustc 1.77.0 (aedd173a2 2024-03-17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant