Skip to content
/ sqlx Public
forked from launchbadge/sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

frol/sqlx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

222 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributing to SQLx

Thank you for your interest in contributing to SQLx! There are many ways to contribute and we appreciate all of them.

This page contains information about reporting issues as well as some tips and guidelines useful to experienced open source contributors.

Getting Started

SQLx uses a Python3 script called x.py to run check, test, etc. on all of the crates in the workspace in all of the supported feature configurations.

  • Run check for all postgres variants (incl. examples)

    $ ./x.py check:postgres
  • Run check for only blocking postgres

    # -e is short for --exact
    $ ./x.py -e check:postgres:blocking
  • Run check for all async variants

    $ ./x.py check:_:async
  • Run unit tests

    $ ./x.py unit
  • Use -l or --list to list all tasks.

Conventions

We aim to be consistent in our naming of both lifetimes and type parameters.

Lifetimes

Lifetime Description
'x Single execution; lifetime ends after the fetch, execute, etc
'v Argument value
'q SQL query string
'e Executor
'c Connection
'p Pool

Type Parameters

Type Parameter Bound Description
Rt Runtime
E Executor
X Execute
Db Database
C Connection
R Row
O FromRow
T Encode, Decode, and/or Type

About

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.4%
  • Other 0.6%