Matt Paul
012d72464e
Make mockable-todos example compile
2020-12-18 21:33:52 -08:00
Matt Paul
44e7bb4183
Make todos example compile
2020-12-18 21:33:52 -08:00
Matt Paul
5d3936517b
Copy 'todos' example directory as starting point
2020-12-18 21:33:52 -08:00
Eric Semeniuc
389f9b5f41
fix macro
2020-12-18 21:33:52 -08:00
Eric Semeniuc
7cc0ecb981
Add cfg sqlite condition
2020-12-18 21:33:52 -08:00
Eric Semeniuc
c64b9bee45
Address pr feedback
2020-12-18 21:33:51 -08:00
Eric Semeniuc
892bbc95a9
add new example for migration
2020-12-18 21:33:51 -08:00
Ryan Leckey
54011f1893
docs: tweak quickstart fix PR for review comments
2020-12-18 21:33:51 -08:00
Kezi
3b80998801
use toml language in example
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-12-18 21:33:51 -08:00
Kezi
057ead3bf4
remove useless use
2020-12-18 21:33:51 -08:00
Kezi
60d3e182b4
Make quickstart actually quick
...
fixes #760
2020-12-18 21:33:51 -08:00
Ryan Leckey
214d5db494
chore: update lockfile
2020-12-18 21:33:51 -08:00
Ryan Leckey
58618f62a2
fix(tests): update x.py with new runtime-* features
2020-12-18 21:33:51 -08:00
Ryan Leckey
187b7481e9
fix(sqlite): implement Encode on Uuid and Hyphenated not references to them
2020-12-18 21:33:50 -08:00
James Tomlinson
a959451e85
Add Sqlite Uuid type tests.
2020-12-18 21:33:49 -08:00
James Tomlinson
7c8822ae5e
Fix formatting (cargo fmt)
2020-12-18 21:33:30 -08:00
James Tomlinson
40011f66df
Uuid support for Sqlite.
...
Includes the same support for the Hyphenated adapter as the MySQL
Uuid support.
2020-12-18 21:33:30 -08:00
Joe Grund
21661c2c9c
Support workspaces for offline feature
...
This patch enables having a top-level `sqlx-data.json` file within a
workspace.
It does this by using a full clean / check instead of `cargo rustc`
which fails on a workspace.
A `--merged` flag is introduced to switch to the workspace behavior
Fixes #353 .
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
2020-12-18 21:33:29 -08:00
Andrew Whitehead
a445f9f431
manually close connections in SharedPool::close
2020-12-18 21:33:11 -08:00
Andrew Whitehead
f39d194b17
decrement pool size when connection is released
2020-12-18 21:33:11 -08:00
Chris Sosnin
4c1cf86380
sqlite: fix memory leak
2020-12-18 21:33:11 -08:00
Pleto
d7c447a9c6
add 1 as true for SQLX_OFFLINE env variable
2020-12-18 21:33:11 -08:00
Fangdun Cai
169fb298ef
fix: whoami crash on FreeBSD aarch platform
2020-12-18 21:33:11 -08:00
chertov
6f793271c4
Replace lru-cache with hashlink
2020-12-18 21:33:09 -08:00
Marcin Kaźmierczak
9ad0c71253
fix clipyy warnings
2020-12-18 21:32:08 -08:00
Dominic
274a69c020
Fix path for &[NaiveTime] in query! macro
2020-12-18 21:32:08 -08:00
sid
ef313f0611
fix migrate marco to take migration type
2020-12-18 21:32:08 -08:00
sid
0921df44c1
reversible migrations for cli
...
- adds a -r flag whihc will create a reversible migration
- add revert subcommand, which reverts the last migration
- add --dry-run flag to migration run command, which list the migrations that will be applied
- updates add migration to check if all migration are of same type, i.e cannot mix and match reversible and simple migrations
2020-12-18 21:32:08 -08:00
Marcin Kaźmierczak
e798409e20
fix fetch_optional for sqlite
2020-12-18 21:32:08 -08:00
Josh Triplett
603c1950fe
Add tests for git2
2020-11-21 14:32:29 -08:00
Josh Triplett
71a72e7c67
Add support for git2::Oid (under the git2 feature flag)
...
This allows queries to convert between Oid and SQL data types.
2020-11-21 14:32:29 -08:00
Josh Triplett
d396e5a948
Add tests for bstr
2020-11-21 14:32:29 -08:00
Josh Triplett
47b0973bdb
Add support for bstr::BString (under the bstr feature flag)
...
This allows queries to convert between BString and SQL data types.
2020-11-21 14:03:11 -08:00
o0Ignition0o
bfa58417a1
dontt allow(clippy::all) twice, just put one in brackets.
2020-11-19 14:06:25 -08:00
o0Ignition0o
52d482ffd1
Wrap allow(clippy::all) twice to avoid potential stability errors in the future.
2020-11-19 14:06:25 -08:00
o0Ignition0o
4b223af2d3
let's add a couple more brackets
2020-11-19 14:06:25 -08:00
o0Ignition0o
9dc039c1ff
#[allow(clippy::all)] on all of the generated code.
2020-11-19 14:06:25 -08:00
o0Ignition0o
9d11c7a7f1
Allow clippy::suspicious_else_formatting when expanding query arguments.
...
Expanding several query arguments in the query! macro creates several if false { ... } statements, which in turn trigger clippy's suspicious_else_formatting (https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_else_formatting ).
This commit allows the clippy lint so users won't be disturbed by it.
2020-11-19 14:06:25 -08:00
Jonas Platte
c1e79d2675
Simplify pattern matching in postgres/type_info.rs
2020-11-19 14:04:07 -08:00
Jonas Platte
3c7c266eac
Fix some clippy lints
2020-11-19 14:04:07 -08:00
Tyler Hallada
672f724aac
Bump version in sqlx-cli README to 0.2.0
...
I was getting an error while running `cargo sqlx prepare` while on `sqlx` version 0.4.1:
```
error: EOF while parsing an object at line 34 column 6
```
Then I realized that I had version 0.1.0-beta.1 of sqlx-cli but 0.2.0 was released on cargo.
I upgraded to 0.2.0 and the command succeeded.
I figured that the README was mistakenly not updated with the release.
2020-11-14 21:27:52 -08:00
Alan D. Salewski
d17e7916ba
gh actions: job 'mssql': use runtime feature name matrix for 'cargo build' step
2020-11-12 13:20:29 -08:00
Alan D. Salewski
d21dc1db11
gh actions: job 'mariadb': use runtime feature name matrix for 'cargo build' step
2020-11-12 13:20:29 -08:00
Alan D. Salewski
a61da5ee0d
gh actions: job 'mysql': use runtime feature name matrix for 'cargo build' step
2020-11-12 13:20:29 -08:00
Alan D. Salewski
9ef2e066dc
gh actions: job 'postgres': use runtime feature name matrix for 'cargo build' step
2020-11-12 13:20:29 -08:00
Alan D. Salewski
a9d0a842fb
gh actions: use runtime feature name matrix for unit tests
2020-11-12 13:20:29 -08:00
Alan D. Salewski
331e7bc564
README.md: group 'runtime-foo-*' features together by runtime
2020-11-12 11:39:19 -08:00
Alan D. Salewski
548d11cc22
README.md: remove duplicate feature entry: 'runtime-tokio-native-tls'
2020-11-12 11:39:19 -08:00
Ryan Leckey
f20da8e663
prepare v0.4.1
2020-11-12 08:57:14 -08:00
Ryan Leckey
4aa2f37140
select a runtime for docs.rs
2020-11-12 08:57:03 -08:00