Skip to content

any_kind() not available #3155

Open
Open
@prabirshrestha

Description

@prabirshrestha

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions