Skip to content

cargo sqlx prepare with MSSQL #1005

Open
@euphbriggs

Description

@euphbriggs

Hello,

I'm new to Rust, so if I'm missing relevant context, please don't hesitate to let me know what I can provide.

I'm attempting to use the sqlx-cli crate to enable offline compiling. I installed it with: cargo install sqlx-cli When I run cargo sqlx prepare I get the following output:

error: error with configuration: database URL has the scheme of a MSSQL database but the `mssql` feature is not enabled

rustup show output:

Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\Ben\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (default)
rustc 1.51.0-nightly (a4cbb44ae 2021-01-20)

Does sqlx-cli work on Windows with a MSSQL database?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions