Commit graph

356 commits

Author SHA1 Message Date
Austin Bonander
b0a36ddd5c fix Executor::describe() for MariaDB
prevent exhaustive match of `describe` structs
2019-12-04 18:13:10 -08:00
Daniel Akhterov
4d28424af5 Fix maraidb build errors 2019-12-04 14:18:43 -08:00
Austin Bonander
952fb0e7fc fix sqlx-macros when no db features are set 2019-12-04 14:12:38 -08:00
Ryan Leckey
5976a35b2a
Merge pull request #42 from mehcode/ab/anon-record
make `query!()` output anonymous records
2019-12-04 13:59:51 -08:00
Austin Bonander
193e79569a query refactors 2019-12-04 13:30:19 -08:00
Austin Bonander
acca40c88e make query!() output anonymous records 2019-12-03 21:30:53 -08:00
Ryan Leckey
871183d23b Minor fixes and run rustfmt 2019-12-03 00:22:02 -08:00
Ryan Leckey
f16c805f4c Try and trim down the features a bit 2019-12-03 00:14:59 -08:00
Ryan Leckey
9558ab1c50 Remove bytes usage and update dependencies 2019-12-02 23:26:44 -08:00
Ryan Leckey
bf4f65ea2f [MySQL] Add fetch_optional, fix encode/decode for integers 2019-12-02 22:14:41 -08:00
Ryan Leckey
6925d5999c Fix mariadb compile errors and remove useless Row wrapper 2019-12-02 21:11:49 -08:00
Daniel Akhterov
55da9daaf1 WIP: MariaDb fetch 2019-12-02 20:47:38 -08:00
Ryan Leckey
f8f71b1b70 Merge remote-tracking branch 'origin/ab/conn-timeout' 2019-11-27 23:31:24 -08:00
Ryan Leckey
2227303f20 Have Backend require Executor and de-duplicate some logic 2019-11-27 23:26:20 -08:00
Ryan Leckey
d307e3cccf Collapse a cfg attribute 2019-11-27 22:35:34 -08:00
Ryan Leckey
c4707bc53a Clean up Cargo.toml 2019-11-27 22:33:40 -08:00
Daniel Akhterov
56ca61a22e WIP: MariaDb fetch 2019-11-27 20:19:53 -08:00
Ryan Leckey
1e6e21046a Just call the example realworld 2019-11-27 15:23:00 -08:00
Ryan Leckey
49b1eab1f7 Clean up example and start a basic realworld one 2019-11-27 15:21:56 -08:00
Ryan Leckey
f1fa802837 Allow Query::bind to forward the type inference used for FromRow 2019-11-27 15:21:29 -08:00
Ryan Leckey
fece1a83ac
Merge pull request #40 from mehcode/rl-from-row
Integrate FromRow while maintaining type fallback for query!
2019-11-27 14:49:19 -08:00
Austin Bonander
279e329f27 break up pool.rs into multiple files 2019-11-26 10:12:47 -08:00
Austin Bonander
8d9e949cc2 implement pool idle reaper, format relevant files 2019-11-26 10:09:59 -08:00
Austin Bonander
e155aa7aea implement pool closing 2019-11-26 10:09:59 -08:00
Austin Bonander
812c0bee61 implement connection timeouts 2019-11-26 10:09:59 -08:00
Ryan Leckey
73ca673bf2 Integrate FromRow while maintaining type fallback for query! 2019-11-25 23:51:04 -08:00
Ryan Leckey
ab32d0a5c4 Add some initial type integration tests for Postgres 2019-11-23 09:02:56 +00:00
Ryan Leckey
b87edd5a9a Unify sqlx::CompiledSql and sqlx::SqlQuery into sqlx::Query as a common return type between sqlx::query and sqlx::query! 2019-11-22 22:41:37 +00:00
Ryan Leckey
b14d3da2ee Add sqlx::Row
- Rename the existing trait to an internal RawRow trait
 - Row is used for selecting a dyn and deferring pulling its values out till later
 - FromSqlRow -> FromRow
2019-11-22 18:34:29 +00:00
Ryan Leckey
1b92fe733b
Merge pull request #34 from mehcode/ab/protocol_err
`Error::Protocol` refactor
2019-11-22 18:34:13 +00:00
Austin Bonander
4d033963ce use protocol_err! instead of InvalidData in more places 2019-11-22 17:57:00 +00:00
Austin Bonander
905320ff39 return Error::Protocol instead of io::ErrorKind::InvalidData 2019-11-22 17:33:44 +00:00
Ryan Leckey
a22fe1755b
Merge pull request #31 from mehcode/ab/bye-crossbeam
simplify pool implementation, run rustfmt
2019-11-22 17:16:46 +00:00
Austin Bonander
a9fb263520 simplify pool implementation, run rustfmt 2019-11-22 17:06:32 +00:00
Ryan Leckey
8bd768afe8
Merge pull request #24 from mehcode/ab/codec
rename `FromSql/ToSql` -> `Decode/Encode`
2019-11-22 13:40:45 +00:00
Ryan Leckey
f394acdb1c Minor cargo.toml cleanup 2019-11-22 11:52:03 +00:00
Ryan Leckey
061b7819ab Remove the RawConnection concept and fold into Backend 2019-11-22 11:48:49 +00:00
Austin Bonander
d332558b25 rename FromSql/ToSql -> Decode/Encode
closes #18
2019-11-22 11:05:17 +00:00
Ryan Leckey
c7ce15f977
Merge pull request #22 from mehcode/ab/facade
implement facade crate so macros can be used from root namespace
2019-11-22 10:46:06 +00:00
Austin Bonander
aee3c4fe48 remove unnecessary .gitignore elements 2019-11-22 10:36:49 +00:00
Austin Bonander
fc07830639 implement facade crate so macros can be used from same namespace 2019-11-22 10:30:16 +00:00
Ryan Leckey
fecd367e8d Update dependencies 2019-11-21 23:59:38 +00:00
Ryan Leckey
2b2d37573c Merge remote-tracking branch 'origin/ab/async-std' 2019-11-21 23:32:53 +00:00
Ryan Leckey
e47e90ec75 Add small tide example 2019-11-21 23:29:40 +00:00
Ryan Leckey
f02b01dcb6 Slim down Connection and require &mut on Executor 2019-11-21 23:29:32 +00:00
Ryan Leckey
4b025e7249 Remove rustfmt.toml 2019-11-21 23:28:23 +00:00
Austin Bonander
020eed90c8 port to async-std, misc fixes 2019-11-21 22:10:49 +00:00
Ryan Leckey
42c3073089 connection.bak -> connection 2019-11-21 21:40:31 +00:00
Ryan Leckey
ec6a3d8021 Fix typo in module comment 2019-11-21 19:33:39 +00:00
Ryan Leckey
47867398c2 Run rustfmt 2019-11-21 18:19:01 +00:00