13 Commits

Author SHA1 Message Date
Ryan Leckey
d07eabd201
feat(core): add IoStream::shutdown and IoStream::shutdown_async 2021-01-11 00:45:11 -08:00
Ryan Leckey
6c8d68e9d0
refactor: marker traits for non-blocking <Async> vs <runtime::Blocking>
- enforce compile-time errors if you try to block on an async-only runtime
   or await a blocking runtime

 - remove viral HRTB for Streams

 - support UNIX streams
2021-01-10 19:23:04 -08:00
Ryan Leckey
cbf280b240
docs: polish, add some information on supported databases and runtimes 2021-01-10 13:02:57 -08:00
Ryan Leckey
d3cfa6fccd
fix(mock): re-enable mock feature 2021-01-10 11:51:01 -08:00
Ryan Leckey
6adf743225
chore: update actix-rt, remove tokio 0.2 from workspace 2021-01-10 11:34:54 -08:00
Ryan Leckey
769e8aa461
refactor: introduce io::Stream (blocking::io::Stream) to encapsulate needed IO methods
- rename sqlx::AsyncRuntime to sqlx::Async
 - don't set default runtime in traits
2021-01-10 10:45:29 -08:00
Ryan Leckey
16077216df
style: clippy 2021-01-08 16:39:12 -08:00
Ryan Leckey
e8ea502cbb
fix(core): blocking IO runtime compiles in isolation 2021-01-08 15:26:06 -08:00
Ryan Leckey
06a8ed03bc
test(core): add a Mock runtime to stub and spy on IO streams for unit testing connections 2021-01-08 15:24:38 -08:00
Ryan Leckey
013df5ad9e
fix(core): import TryFutureExt to access map_ok 2021-01-01 12:40:40 -08:00
Ryan Leckey
55a8e7ba29
wip(mysql): connection/establish, WriteExt, BufExt, and settle on AsyncRuntime 2021-01-01 12:28:48 -08:00
Ryan Leckey
7a323f3471
feat(core): refine runtime abstraction
- traits from sqlx::blocking::_ have sqlx::_ traits as dependents

 - methods in sqlx::_ traits are cfg-d on "async" with an additional Rt: Async bound
2020-12-28 00:16:44 -08:00
Ryan Leckey
50e43a8211
feat(core): add minimal Runtime and blocking::Runtime and re-expose sqlx-core in sqlx 2020-12-27 17:01:44 -08:00