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
Daniel Akhterov
56ca61a22e
WIP: MariaDb fetch
2019-11-27 20:19:53 -08:00
Ryan Leckey
f1fa802837
Allow Query::bind to forward the type inference used for FromRow
2019-11-27 15:21:29 -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
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
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
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
Austin Bonander
fc07830639
implement facade crate so macros can be used from same namespace
2019-11-22 10:30:16 +00:00
Ryan Leckey
04f56570a4
Collapse into 1 crate
2019-07-25 23:41:50 -07:00
Ryan Leckey
aa0b27af35
Minor clean up
2019-06-28 21:36:46 -07:00
Ryan Leckey
5c73e220b6
Set up a connection benchmark using a mocked pg server
2019-06-26 12:49:08 -07:00
Ryan Leckey
22f71df7c7
mason -> sqlx
2019-06-22 20:54:43 -07:00