Chris Couzens
8e4d061dc1
Correct PgConnectOptions to MySql in mysql docs
...
I'm using this library for the first time, and I noticed this small oversight in the docs.
2020-10-07 05:24:03 -07:00
Kramer Hampton
2e1658e08b
feat: adds the setup command to the sqlx-cli
...
The reset command is the equivalent of `sqlx db create`,
and `sqlx migrate run`.
2020-09-10 21:32:04 -07:00
Kramer Hampton
916f1fccf2
feat: adds the reset command to the sqlx-cli
...
The reset command is the equivalent of `sqlx db drop`, `sqlx db create`,
and `sqlx migrate run`. Unless the `-y` parameter is specified, it will
prompt confirmation before dropping the database.
2020-09-10 21:32:04 -07:00
David Yamnitsky
44594e2e03
impl From for AnyConnectOptions
2020-09-09 01:18:28 -07:00
Mike Cronce
1acd782e7f
sqlx-core/src/mysql/types/str.rs: cargo fmt
2020-09-02 22:53:13 -07:00
Mike Cronce
d8142a8fa3
sqlx-core/src/mysql/types/str.rs: str::compatible(): Added support for charset number 33 (utf8 COLLATE utf8_general_ci)
2020-09-02 22:53:13 -07:00
Andrew Whitehead
9cd9209aa3
add support for pooling in-memory sqlite DB, enabling shared cache
2020-09-02 22:51:03 -07:00
Yerkebulan Tulibergenov
b48e008ef8
Support non-ASCII chars in mssql credentials
2020-08-23 16:48:59 -07:00
Yerkebulan Tulibergenov
500d4a5b2a
Support non-ASCII chars in mysql credentials
2020-08-23 16:34:50 -07:00
Ryan Leckey
67099d993c
Merge remote-tracking branch 'frigus02/pg-percent-decode' into master
2020-08-19 18:03:31 -07:00
LMJW
48a55a407b
fix(issue #558 )
...
- check the existance of `Cargo.toml` at current working directory
before checking 'DATABASE_URL' environment variable
2020-08-19 18:00:40 -07:00
Stuart Hinson
9b26d45344
application name test
2020-08-19 17:56:51 -07:00
Stuart Hinson
1ab815cc9b
WIP pg application_name
2020-08-19 17:56:51 -07:00
Yusuke Tanaka
3076a2dc09
Fix typo
2020-08-17 20:39:52 -07:00
Stuart Hinson
2ec5ff06b0
Add --database-url to command line
2020-08-17 20:06:26 -07:00
drklee3
dfb096eaa7
docs(macros): Add missing closing bracket in code example
2020-08-15 18:32:38 -07:00
Jan Kuehle
106a6a8395
Support non-ASCII chars in postgres credentials
...
The `url` crate returns username and password portions of a URL as
percent encoded ASCII strings. In order to use them for the Postgres
connection, we need to decode them.
2020-08-13 15:50:07 +01:00
Matt Paul
9ed6428c8e
Fix incorrect bash command
2020-08-10 18:22:10 -07:00
Julius de Bruijn
ae2e5db4b2
SQLite: Allow setting busy_timeout
in options
2020-08-04 19:16:31 -07:00
Chloe Ross
5f3245d7f4
format: run cargo fmt
2020-07-31 04:14:48 -07:00
Chloe Ross
1949445cf0
other: don't deadname self
2020-07-31 04:14:48 -07:00
Chloe Ross
3885ae6ddf
fix: allow queries that select just void to pass through macros as ()
instead of struct { _1: () }
2020-07-31 04:14:48 -07:00
Jannik Obermann
67142259e4
Fix #580 + Add test
2020-07-31 04:14:32 -07:00
吴翱翔
c5157c950d
Add decimal feature to README.md
2020-07-31 04:13:28 -07:00
aspen
94413bd830
sqlx-cli: Exit with code 1 on error.
2020-07-29 12:04:12 -07:00
吴翱翔
96f4a43bb8
style: rustfmt
2020-07-29 07:39:31 -07:00
吴翱翔
c6fa9047b9
Remove rust_decimal unnecessary num-traits
2020-07-29 07:39:31 -07:00
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