Ryan Leckey
3a645a1824
[MySQL] Don't adjust the raw bytes coming to the Decode trait
...
This is a minor adjustment that keeps parity between Encode and Decode
2019-12-30 02:10:09 -08:00
Ryan Leckey
2068f05482
Update dependencies
2019-12-28 04:02:52 -08:00
Ryan Leckey
5e719917c0
Run rustfmt
2019-12-28 03:45:47 -08:00
Ryan Leckey
f67872cbcf
Add some ground work for #1
2019-12-28 03:45:37 -08:00
Ryan Leckey
86ac601872
Prepare v0.1.1
2019-12-28 02:42:51 -08:00
Austin Bonander
c98c49ad47
fix docs and guarantees for pool
2019-12-28 02:02:29 -08:00
Ryan Leckey
dc43d3ee2f
Merge branch 'master' of ssh://github.com/mehcode/sqlx
2019-12-28 01:01:50 -08:00
Ryan Leckey
e16c043bf9
Add basic docs to MySql and Postgres Connection
2019-12-28 01:01:45 -08:00
Austin Bonander
af4b5b753d
fixup docs for Query
/QueryAs
/Executor
2019-12-28 00:56:55 -08:00
Ryan Leckey
7b8ef0f46b
Add more authors
2019-12-28 00:36:37 -08:00
Ryan Leckey
ef98ff2828
Add repo/desc to sub crates
2019-12-28 00:25:04 -08:00
Ryan Leckey
98269ddd20
Fix several nits from Clippy and add back chrono support for MySql
2019-12-27 23:16:13 -08:00
Ryan Leckey
9b0f34b0ce
Fix a couple minor nits with Pool and run rustfmt
2019-12-27 22:47:25 -08:00
Ryan Leckey
a23bfb60eb
Clean up the example a touch
2019-12-27 21:50:13 -08:00
Ryan Leckey
017ee38725
De-duplicate error impls and forward MySqlConnection/PgConnection to crate root
2019-12-27 21:50:13 -08:00
Austin Bonander
7d745f98ea
implement query_as!()
et al, document query macros
2019-12-27 21:45:31 -08:00
Ryan Leckey
56a82346f2
Run cargo fmt
2019-12-27 20:44:03 -08:00
Ryan Leckey
d76b1357da
Audit MySql and Postgres protocols
2019-12-27 17:31:01 -08:00
Austin Bonander
b85618e5f8
fix errors from .send_raw()
additions that I didn't catch
2019-12-19 23:26:59 -08:00
Austin Bonander
892a179787
set default max_lifetime in pool::Options to 30 minutes and explain why
2019-12-19 23:26:59 -08:00
Austin Bonander
786deecc36
replace bitflags::_core
with std
...
for some reason IntelliJ-Rust reaches for this first
2019-12-19 18:46:37 -08:00
Austin Bonander
5192983093
implement Executor::send()
2019-12-19 18:46:37 -08:00
Austin Bonander
56875a8931
finish discussed refactors
2019-12-18 23:02:01 -08:00
Austin Bonander
8aa931356f
WIP implement statement caching for MySQL, perform discussed refactors
2019-12-18 23:02:01 -08:00
Austin Bonander
e11f5bcaa7
allow chrono to be used with query!()
2019-12-18 23:02:01 -08:00
Austin Bonander
d8d93867b7
implement prepared statement caching for postgres
2019-12-18 23:02:01 -08:00
Austin Bonander
ca3fbd740a
implement support for chrono
...
fix tests
2019-12-11 19:59:41 -08:00
Daniel Akhterov
918657638b
Test all number types and String type
2019-12-05 21:36:09 -08:00
Daniel Akhterov
fdd60eb9b1
Fix null_bitmap size in MariaDb
2019-12-05 19:39:28 -08:00
Daniel Akhterov
6cac5383e3
Fix renamed functions/ response types
2019-12-05 18:29:35 -08:00
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
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
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