Skip to content

johanhelsing/sqlx-convenience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlx-convenience

Convenience stuff to reduce the amount of boiler-plate when doing common stuff with sqlx.

insert! macro

insert!("account", id, email, created_at, updated_at)

Expands into:

query!("INSERT INTO account (id, email, created_at, updated_at) VALUES ($1, $2, $3, $4)",
    id, email, created_at, updated_at)

Saves you the work of typing the arguments twice and meticulously maintaining the order and number of $1 etc.

About

Macros to reduce sqlx query boilerplate for most common operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages