Cargo Features

sqlx-macros-core has no features set by default.

[dependencies]
sqlx-macros-core = { version = "0.7.4", features = ["migrate", "mysql", "postgres", "sqlite", "json", "bigdecimal", "bit-vec", "chrono", "ipnetwork", "mac_address", "rust_decimal", "time", "uuid", "async-std", "tokio"] }
migrate

SQLx features

Enables migrate of sqlx-core

Affects sqlx-macros-core::migrate

mysql = sqlx-mysql

database

postgres = sqlx-postgres
sqlite = sqlx-sqlite
json

type integrations

Enables json of sqlx-core, optional sqlx-mysql, and optional sqlx-sqlite

bigdecimal

Enables bigdecimal of sqlx-core, optional sqlx-mysql, and optional sqlx-postgres

bit-vec

Enables bit-vec of sqlx-core and optional sqlx-postgres

chrono

Enables chrono of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

ipnetwork

Enables ipnetwork of sqlx-core and optional sqlx-postgres

mac_address

Enables mac_address of sqlx-core and optional sqlx-postgres

rust_decimal

Enables rust_decimal of sqlx-core, optional sqlx-mysql, and optional sqlx-postgres

sqlx-postgres:

Type integration features which require additional dependencies

time

Enables time of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

uuid

Enables uuid of sqlx-core, optional sqlx-mysql, optional sqlx-postgres, and optional sqlx-sqlite

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

sqlx-mysql mysql?
sqlx-postgres postgres?
sqlx-sqlite sqlite?
async-std implicit feature

Enables async-std

async-std:

Async version of the Rust standard library

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications