Martin Tomasi
002929ed2e
Added missing target for query logger
2020-07-29 07:37:58 -07:00
Jonas Platte
960e71202b
Don't include postgres OIDs in query cache
2020-07-29 07:28:14 -07:00
Max Countryman
904ba018da
ensure installation instructions account for prerelease
2020-07-29 07:09:48 -07:00
Max Countryman
9ea5ce01a2
ensure correct crates version
2020-07-28 07:31:54 -07:00
Austin Bonander
685d70ba62
refactor(examples): use select pg_notify
in postgres/listen
...
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2020-07-28 03:21:19 -07:00
Austin Bonander
4e00ee050d
fix(macros): resolve clippy lint warning
...
cc https://github.com/rust-lang/rust-clippy/issues/5849
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2020-07-28 03:21:05 -07:00
foldu
bd1d9f45f3
Fix create_if_missing docs
2020-07-27 04:03:30 -07:00
Julius de Bruijn
0ed8e3f610
Add missing compatible
implementation for Vec<BitVec>
2020-07-27 03:36:44 -07:00
Julius de Bruijn
1a59d3308a
Pg: Implementing BIT
and VARBIT
using BitVec
2020-07-27 03:36:44 -07:00
Ryan Leckey
e419bf9dfa
remove removed examples from workspace
2020-07-27 02:23:34 -07:00
Ryan Leckey
4857d051e1
chore: update listener example
2020-07-27 02:22:59 -07:00
Ryan Leckey
d04d612368
Remove realworld example.
...
I'd prefer to have one but I'd rather not have one then one that doesn't compile.
Ideally someone could take up maintaining a realworld example outside of SQLx. Until GATs though we
should keep this to one database. Looking back, most of the reason this is so hard to migrate to 0.4 is
because of how generic the bounds are.
2020-07-27 02:22:31 -07:00
Ryan Leckey
f66025b460
remove examples/postgres/todo-api as there is now a similar example in actix/examples
2020-07-27 02:12:11 -07:00
Ryan Leckey
811982db80
chore: update README
2020-07-27 02:11:46 -07:00
Ryan Leckey
95e17bede2
Update CHANGELOG.md
2020-07-27 01:56:14 -07:00
Ryan Leckey
22f1f93b79
chore: prepare sqlx v0.4.0-beta.1 and sqlx-cli v0.1.0-beta.1
2020-07-27 01:43:02 -07:00
Ryan Leckey
41694f7e7c
chore: prepare sqlx-rt v0.1.1
2020-07-27 01:38:39 -07:00
Raphaël Thériault
1d6a0a9547
Add a missing runtime annotation for CI caching
2020-07-27 01:24:45 -07:00
Raphaël Thériault
6bca82cce7
CI caching
2020-07-27 01:24:45 -07:00
Raphaël Thériault
d78bfa6aac
Add actions build job for cargo-sqlx binaries
2020-07-27 01:24:45 -07:00
Ryan Leckey
27c67752f3
test(mysql): remove failing part of boolean describe test - not easily possible to fix in 0.4
2020-07-27 01:11:11 -07:00
Ryan Leckey
18ee5d4983
fix: enable used but missing stream feature on tokio
2020-07-27 00:45:19 -07:00
Raphaël Thériault
ced09e0545
Support using both nullability and type overrides ( #549 )
...
* Make it possible to use both nullability and type overrides
* Fix override parsing lookahead logic
* Update column override tests
* Support nullability overrides with wildcard type overrides
* Fix tests
* Update query! overrides docs
* Remove last bits of macro_result!
* rustfmt
2020-07-27 00:43:35 -07:00
Ryan Leckey
116fbc1942
chore: prepare sqlx-rt v0.1.0
2020-07-26 23:59:58 -07:00
Ryan Leckey
7bc3133f70
feat: add an optional query logger (using log
)
2020-07-26 23:55:36 -07:00
Ryan Leckey
d06de149a0
fix: get MatchBorrow type check working for references 3 deep
2020-07-26 23:07:12 -07:00
Ryan Leckey
fe04a1b612
chore: update lockfile
2020-07-26 22:31:28 -07:00
Ryan Leckey
3d7ac03e52
style: rustfmt
2020-07-26 22:30:45 -07:00
Ryan Leckey
4fec7db789
test(mysql, uuid): add some tests to prove UUIDs work in MySQL
2020-07-26 22:30:32 -07:00
Kaleb Elwert
e0ace861c5
Allow MigrationSource to be implemented externally ( #511 )
2020-07-26 20:23:44 -07:00
Joshua Koudys
05ffcb312d
Uuid support for MySQL ( #536 )
...
* feat: uuid decoder for mysql, patterned on postgres
* feat: Add uuid on mysql encoding
* fix: encode after converting to bytes
* fix: use the byte decoder on uuids
* fix: remove unused import
* feat: Adds mysql encoding/decoding support for Hyphenated uuid
* fix: uncommented feature flag line
* fix: unresolved import
* fix: use sqlx string type for binary uuid
Co-authored-by: Ian Hume <Humeian@me.com>
2020-07-26 19:45:06 -07:00
Ryan Leckey
ec0e84d8ac
feat(mysql): support reading and writing BIT via unsigned integers
...
e.g., BIT(64) is u64 and BIT(2) is u8
2020-07-26 19:42:32 -07:00
Ryan Leckey
7b132d1dbc
refactor(mysql): store max_size in MySqlTypeInfo – prepare for an eventual future where emit bool
for TINYINT(1)
2020-07-26 19:37:58 -07:00
Ryan Leckey
55f6c9a2e9
test: fix decode test in macros
2020-07-26 18:11:15 -07:00
Ryan Leckey
51c5d82fec
fix: remove macro_result wrapper from migrate!
2020-07-26 18:06:06 -07:00
Ryan Leckey
c454e1ea35
style: remove unused import
2020-07-26 18:05:55 -07:00
Ryan Leckey
f298eb3cf1
Merge remote-tracking branch 'raftario/embedded-migrations'
2020-07-26 18:03:59 -07:00
Ryan Leckey
86d41f17aa
Merge remote-tracking branch 'origin/ab/macro-refresh'
2020-07-26 17:54:23 -07:00
Ryan Leckey
b61c0821ab
style: rustfmt
2020-07-24 08:07:44 -07:00
Ryan Leckey
3840d031c6
test: add a test case for YEAR support (as u16)
2020-07-24 08:07:07 -07:00
Julius de Bruijn
8eb8661945
Allow decoding a YEAR
value as uint from MySQL
2020-07-24 08:05:54 -07:00
Jonas Platte
adfa2d2161
sqlx-cli: Upgrade console dependency
2020-07-24 07:54:06 -07:00
Jonas Platte
979ddeb222
cargo-sqlx-cli: Fix exiting with 0 on failure
2020-07-24 07:54:06 -07:00
Ryan Leckey
40f0a22765
Merge remote-tracking branch 'magurotuna/doc-links'
2020-07-24 07:33:27 -07:00
Ryan Leckey
08d2c79279
feat(postgres): expose PgTypeKind
2020-07-24 07:28:59 -07:00
Danny Weinberg
f0f93c4f79
Fix options in tests
2020-07-24 07:25:29 -07:00
Danny Weinberg
bd6b6e0365
Make names match their corresponding styles
2020-07-24 07:25:29 -07:00
Danny Weinberg
036bd2a05d
Add SCREAMING_SNAKE_CASE rename_all option
...
This mirrors the addition of `uppercase` in https://github.com/launchbadge/sqlx/pull/304 , but for all uppercase snake case.
2020-07-24 07:25:29 -07:00
Ryan Leckey
e575501a39
feat: add Executor::prepare, a hook into the automatic statement preparation life-cycle
2020-07-24 07:24:23 -07:00
Julius de Bruijn
e8a4c54ac7
Allow setting caching per-query
2020-07-24 07:24:23 -07:00