479 Commits

Author SHA1 Message Date
Ryan Leckey
6b22fb7489 Refactor HasSqlType to provide an array of compatible types.
* Intending to use in a new Row type to check types at runtime for
   dynamic queries and to guard against schema changes

 * Hoping the query! macro can utilize this to allow accepting N
   rust types for 1 sql type and returning N rust types for 1 sql
   type.
2020-01-14 23:27:42 -08:00
Ryan Leckey
6ab0efb54f
Merge pull request #45 from yerke/patch-2
fix a typo
2020-01-12 10:57:35 -08:00
Ryan Leckey
3548e5922c
Update README.md 2020-01-12 10:22:12 -08:00
Yerkebulan Tulibergenov
aea7106112
fix a typo 2020-01-11 22:22:24 -08:00
Ryan Leckey
2a19ab746b Prepare v0.1.4 v0.1.4 2020-01-11 04:06:43 -08:00
Ryan Leckey
fe98b0b612 Turn on neccessary feature flags of futures-channel and async-std 2020-01-11 04:06:33 -08:00
Ryan Leckey
59e12bab93 Update CHANGELOG 2020-01-11 03:57:08 -08:00
Ryan Leckey
1d20926189 Use '+00:00' over UTC for MySQL timezone 2020-01-11 03:54:04 -08:00
Ryan Leckey
9b50dccfce Run rustfmt 2020-01-11 03:52:17 -08:00
Ryan Leckey
c4a0ac50df Indicate that we support both forms of SCRAM (just always reject channel binding for now) 2020-01-11 03:52:12 -08:00
Ryan Leckey
4f28590def Downgrade generic-array to match digest 2020-01-11 03:35:38 -08:00
Daniel Akhterov
db230e2ce0 Resolve Comments
- Remove `hex` from root `Cargo.toml`
    - Make `hmac` crate optional
    - Clean up checking mechanisms for "SCRAM-SHA-256"
    - Use `str::from_utf8` instead of `String::from_utf8_lossyf
    - Update `Sasl*Response` structs be tuple structs
    - Factor out `len` in `SaslInitialResponse.encode()`
    - Use `protocol_err` instead of `expect` when constructing `Hmacf
      instances
    - Remove `it_connects_to_database_user` test as it was too fragile
    - Move `sasl_auth` function into `postgres/connection` as it more
      related to `Connection` rather than `protocl`
    - Return an error when decoding base64 salt rather than panicing
      in `Authentication::SaslContinue`
2020-01-11 03:33:38 -08:00
Daniel Akhterov
507d988fc4 Implememnt SASL Authentication 2020-01-11 03:33:21 -08:00
Ryan Leckey
fec6101e1a Use timeout over .timeout to stay off unstable 2020-01-11 03:31:55 -08:00
Ryan Leckey
619de5aac2 Update dependencies 2020-01-11 03:30:03 -08:00
Ryan Leckey
95fac72abf Use crossbeam queues to achieve fairness in the pool 2020-01-11 03:26:48 -08:00
Ryan Leckey
03251b719b Refactor pool to fix liveness and consistently check 2020-01-11 01:02:03 -08:00
Ryan Leckey
132f7b2944 Add test_on_acquire option to the Pool 2020-01-11 01:01:21 -08:00
Ryan Leckey
12a9976bfb The macros module doesn't exist without a db engine 2020-01-11 01:00:41 -08:00
Ryan Leckey
42d0a9bc3d has_columns is only used for postgres 2020-01-11 01:00:24 -08:00
Ryan Leckey
1350bfb822 Add test for issue #40 2020-01-11 01:00:13 -08:00
Austin Bonander
5e9887a42d
Merge pull request #42 from prettynatty/master
implement Debug for Pool
2020-01-10 15:57:28 -08:00
Andrey Kuznetsov
e7026ce92d derive Debug for Pool 2020-01-10 23:36:50 +00:00
Austin Bonander
0a5aacabd5
Merge pull request #35 from VersBinarii/fix_bool
Decode boolean: check if enough bytes was received
2020-01-07 13:58:11 -08:00
Kris
7464d35803 Check if enough bytes was received 2020-01-07 11:44:15 +01:00
Kris
bad21b1567 Build docs for all features (#32) 2020-01-06 23:57:55 -08:00
Ryan Leckey
fe827a3337
Tweak CI and enable for PRs
* Tweak cache strategy for Rust

* Tweak cache strategy some more

* ci: trigger

* Tweak the rest of the CI tasks
2020-01-06 23:55:11 -08:00
Ryan Leckey
36d16c5cb2 (cargo-release) sqlx: v0.1.3 v0.1.3 2020-01-06 11:10:24 -08:00
Ryan Leckey
6d525b23ed (cargo-release) sqlx-core: v0.1.3 2020-01-06 11:10:24 -08:00
Ryan Leckey
280f12ea71 Configure release.toml so we can easily release sub crates 2020-01-06 11:10:20 -08:00
Ryan Leckey
31260c40df Update CHANGELOG 2020-01-06 10:55:14 -08:00
Ryan Leckey
92f3f8cf6f Finish reallocation strategy for BufStream
Fixes #30
2020-01-06 10:53:56 -08:00
Ryan Leckey
5c532a8ecc [sqlx-core] prepare v0.1.2 2020-01-05 22:00:56 -08:00
Austin Bonander
2e11456ce5
Merge pull request #26 from launchbadge/rl-metadata
Add keywords and categories
2020-01-04 03:30:38 -08:00
Ryan Leckey
53a3b205b0
Add keywords and categories 2020-01-04 01:37:37 -08:00
Ryan Leckey
3607c3ff9d Merge branch 'master' of github.com:launchbadge/sqlx 2020-01-03 22:13:22 -08:00
Ryan Leckey
bed6fddb56 (cargo-release) version 0.1.2 v0.1.2 2020-01-03 22:12:43 -08:00
Ryan Leckey
0f8c9d5c46 Configure cargo-release 2020-01-03 22:12:37 -08:00
Ryan Leckey
d380b1034b Update dependencies 2020-01-03 22:07:20 -08:00
Ryan Leckey
1c9d8e0a80
Merge pull request #21 from launchbadge/rl-ci
Setup CI for Postgres and MySQL
2020-01-03 22:06:07 -08:00
Ryan Leckey
77fbe3dd9e Try a different health check for MariaDB 2020-01-03 21:59:22 -08:00
Ryan Leckey
cec532acb1 Fix port reference for MariaDB 2020-01-03 21:59:22 -08:00
Ryan Leckey
2cc2fd5700 MariaDB takes longer to start than Postgres 2020-01-03 21:59:22 -08:00
Ryan Leckey
8c92a179ca Fix health command for MariaDB 2020-01-03 21:59:22 -08:00
Ryan Leckey
0b6be44fc0 Add initial CI workflow for Postgres 2020-01-03 21:59:22 -08:00
Ryan Leckey
e42c0ec123 Clean up existing CI 2020-01-03 21:59:22 -08:00
Ryan Leckey
ba4521e236
Merge pull request #23 from launchbadge/ab/macros-doc-fixes
fix macro examples and tests for MySQL
2020-01-03 21:54:48 -08:00
Austin Bonander
589d06ec66 change UnexpectedEof to ConnectionAborted 2020-01-03 19:06:00 -08:00
Austin Bonander
43f1164823 fix macro examples and tests 2020-01-03 19:02:31 -08:00
Ryan Leckey
054d3ed838 Run rustfmt on auth_plugin 2020-01-03 17:55:34 -08:00