Ryan Leckey
e6d336fa9a
fix(tests): update x.py with new runtime-* features
2020-12-18 21:26:16 -08:00
Ryan Leckey
f8ee2dd068
fix(sqlite): implement Encode on Uuid and Hyphenated not references to them
2020-12-18 21:26:00 -08:00
James Tomlinson
522e45c994
Add Sqlite Uuid type tests.
2020-12-18 21:20:47 -08:00
James Tomlinson
302db717aa
Fix formatting (cargo fmt)
2020-12-18 21:20:42 -08:00
James Tomlinson
0631384f4d
Uuid support for Sqlite.
...
Includes the same support for the Hyphenated adapter as the MySQL
Uuid support.
2020-12-18 21:20:33 -08:00
Joe Grund
3e1da43434
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-19 05:17:07 +00:00
Andrew Whitehead
b188c83717
manually close connections in SharedPool::close
2020-12-17 23:24:42 -08:00
Andrew Whitehead
07fd531a30
decrement pool size when connection is released
2020-12-17 23:24:42 -08:00
Chris Sosnin
df1b9b06ed
sqlite: fix memory leak
2020-12-17 00:55:45 -08:00
Pleto
9f99a8f3d2
add 1 as true for SQLX_OFFLINE env variable
2020-12-17 00:54:21 -08:00
Fangdun Cai
4973ae5a58
fix: whoami crash on FreeBSD aarch platform
2020-12-17 00:53:35 -08:00
chertov
04647ae09a
Replace lru-cache with hashlink
2020-12-02 18:41:49 -08:00
Marcin Kaźmierczak
7f1bff406d
fix clipyy warnings
2020-11-24 16:15:22 -08:00
Dominic
204a65a464
Fix path for &[NaiveTime] in query! macro
2020-11-24 16:08:53 -08:00
sid
e8c073c5e2
fix migrate marco to take migration type
2020-11-24 16:04:43 -08:00
sid
f41551f3ad
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-11-24 16:04:43 -08:00
Marcin Kaźmierczak
70fa667063
fix fetch_optional for sqlite
2020-11-24 16:01:52 -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
Ryan Leckey
e3d7e542c1
add a tbd section for 0.4.0 in the changelog
2020-11-12 07:54:51 -08:00
Ryan Leckey
f2d55bc049
sqlx-cli: prepare v0.2.0
v0.4.0
2020-11-12 07:50:31 -08:00
Ryan Leckey
99373b8443
chore: update lockfile
2020-11-12 07:46:22 -08:00
Ryan Leckey
0b03dc6762
prepare v0.4.0
2020-11-12 07:46:13 -08:00
Ryan Leckey
07f4b98bcc
sqlx-rt: prepare v0.2.0
2020-11-12 07:44:44 -08:00
Ryan Leckey
e1166ae21b
sqlx-rt: prepare v0.1.2
2020-11-12 07:43:15 -08:00
Ryan Leckey
7eee12047b
chore: update lockfile
2020-11-12 07:42:50 -08:00
Ryan Leckey
f22a3f5a5d
remove default runtime, you must now always select a runtime
2020-11-12 07:42:31 -08:00
Ryan Leckey
12da5ba534
fix: usage of migrate::run now takes two parameters
2020-11-12 07:38:54 -08:00
Jonas Platte
1ed75ba5f0
Support accept_invalid_certs & accept_invalid_hostnames with rustls
...
Co-authored-by: BlackHoleFox <blackholefoxdev@gmail.com>
2020-11-12 07:32:59 -08:00
Jonas Platte
a68872a35a
Test rustls on CI
2020-11-12 07:32:59 -08:00
Jonas Platte
62adfe33d5
Update Cargo.lock
2020-11-12 07:32:59 -08:00
Jonas Platte
b14266ba2e
Add rustls support
2020-11-12 07:32:59 -08:00
Jonas Platte
9298c88b87
Refactor TLS code to be a bit easier to read
2020-11-12 07:32:21 -08:00
Jonas Platte
cd44b5eb43
De-duplicate mysql & postgres TLS code
2020-11-12 07:32:21 -08:00
Jonas Platte
f28ab22748
Remove unused re-export of native_tls::Error
2020-11-12 07:32:21 -08:00