sqlx_query 0.2.0

Expands to either sqlx function `query` or macro `query!` call depending on `sqlx_compiletime_checks` has been enabled during the build.
docs.rs failed to build sqlx_query-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Module :: sqlx_query

experimental rust-status docs.rs Open in Gitpod discord

The tool to make CLI ( commands user interface ). It is able to aggregate external binary applications, as well as functions, which are written in your language.

Sample

use sqlx_query::*;

let user: User = query_as!( User, "SELECT * FROM users LIMIT 1" )
.fetch_one( executor )
.await?;

query!("DELETE FROM users WHERE id = $1", user.id).execute( executor ).await?;

To add to your project

cargo add sqlx_query

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/sqlx_query_trivial
cargo run