You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-2Lines changed: 51 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,16 +41,63 @@
41
41
42
42
SQLx is a modern SQL client built from the ground up for Rust, in Rust.
43
43
44
-
***Truly Asynchronous**. Built from the ground-up using [async-std] using async streams for maximum concurrency.
44
+
***Truly Asynchronous**. Built from the ground-up using async/await for maximum concurrency.
45
45
46
46
***Type-safe SQL** (if you want it) without DSLs. Use the `query!()` macro to check your SQL and bind parameters at
47
47
compile time. (You can still use dynamic SQL queries if you like.)
48
48
49
49
***Pure Rust**. The Postgres and MySQL/MariaDB drivers are written in pure Rust using **zero** unsafe code.
50
+
51
+
***Runtime Agnostic**. Works on [async-std](https://crates.io/crates/async-std) or [tokio](https://crates.io/crates/tokio) with the `runtime-async-std` or `runtime-tokio` cargo feature flag.
52
+
53
+
## Install
54
+
55
+
**async-std**
56
+
57
+
```toml
58
+
# Cargo.toml
59
+
[dependencies]
60
+
sqlx = "0.2"
61
+
```
62
+
63
+
**tokio**
64
+
65
+
```toml
66
+
# Cargo.toml
67
+
[dependencies]
68
+
sqlx = { version = "0.2", no-default-features = true, features = [ "runtime-tokio", "macros" ] }
69
+
```
70
+
71
+
#### Cargo Feature Flags
72
+
73
+
*`runtime-async-std` (on by default): Use the `async-std` runtime.
74
+
75
+
*`runtime-tokio`: Use the `tokio` runtime. Mutually exclusive with the `runtime-async-std` feature.
76
+
77
+
*`postgres`: Add support for the Postgres database server.
78
+
79
+
*`mysql`: Add support for the MySQL (and MariaDB) database server.
80
+
81
+
*`uuid`: Add support for UUID (in Postgres).
82
+
83
+
*`chrono`: Add support for date and time types from `chrono`.
0 commit comments