222 Commits

Author SHA1 Message Date
Ryan Leckey
a6c8cb02df
feat(core): expand Executor with fetch_x, declare Column, Row, and QueryResult 2021-02-18 23:46:03 -08:00
rich-murphey
1fe689771c fix typo 2021-02-12 18:21:06 -08:00
rich-murphey
45a4f14f8c use space after comma to conform to fmt 2021-02-12 18:21:06 -08:00
rich-murphey
1d5ca38e0d postgres is bigendian. maintain rustfmt. use .consume() 2021-02-12 18:21:06 -08:00
rich-murphey
902114b756 postgres: peek at header then take whole message 2021-02-12 18:21:06 -08:00
Ryan Leckey
499bc33e41
test(mysql): some test fixes in connect mocks 2021-01-27 19:55:33 -08:00
Ryan Leckey
a0d68e726c
feat(mysql): add MySqlQueryResult 2021-01-27 19:31:21 -08:00
Ryan Leckey
1b3e9a990f
fix(mysql): add missing type Database to Executor impl 2021-01-26 01:22:00 -08:00
Ryan Leckey
5836e1eb63
wip(mysql): impl Executor 2021-01-26 01:18:54 -08:00
Ryan Leckey
ce2fba7b8d
refactor(mysql): split off MySqlStream from MySqlConnection 2021-01-26 01:17:54 -08:00
Ryan Leckey
d279c6b978
feat(mysql): implement more protocol types: QueryResponse, Query, QueryStep, ColumnDef, Row 2021-01-26 01:17:54 -08:00
Ryan Leckey
76dd78f639
feat(core): add (minimal) Executor 2021-01-26 01:17:54 -08:00
Ryan Leckey
66ceff37b7
feat(core): impl io::Serialize for a byte slice 2021-01-26 01:17:54 -08:00
Ryan Leckey
965389557e
chore: update async-compat to release 0.2 (tokio 1.0 support) 2021-01-26 01:17:52 -08:00
Daniel Akhterov
55e2510f24
refactor: clean up sasl macro 2021-01-24 14:38:55 -08:00
Daniel Akhterov
80a1b19db9
feat: add sasl support 2021-01-24 13:54:57 -08:00
Daniel Akhterov
c8f7601ad1
feat: implement read_packet for postgres 2021-01-23 13:27:52 -08:00
Daniel Akhterov
d5053d1b1d
feat: begin work on postgres 2021-01-22 00:21:16 -08:00
Ryan Leckey
ecec956f67
fix(sqlx): minor blocking fixes 2021-01-20 19:48:41 -08:00
Ryan Leckey
e10f1bf5d5
fix(mock): sqlx_core::Async is only available if feature = "async" 2021-01-20 19:43:19 -08:00
Ryan Leckey
02524b24c1
refactor: update examples to remove preludes 2021-01-20 19:41:45 -08:00
Ryan Leckey
a0ce421989
refactor: remove preludes and provide inherent methods on wrapped types
- sqlx::mysql::MySqlConnection is a tuple struct of sqlx_mysql::MySqlConnection

 - sqlx::mysql::MySqlConnection provides both connect() and connect().await
   using crate-local specialization from negative trait bound inference
2021-01-20 19:39:25 -08:00
Ryan Leckey
e719f698f4
polish: collapse a couple async/blocking groups 2021-01-14 19:01:39 -08:00
Ryan Leckey
723599043e
chore: move x.py to project root and add doc commands 2021-01-14 18:57:18 -08:00
Ryan Leckey
8426ae1684
test: print output if not verbose if command failed 2021-01-11 00:45:30 -08:00
Ryan Leckey
d07eabd201
feat(core): add IoStream::shutdown and IoStream::shutdown_async 2021-01-11 00:45:11 -08:00
Ryan Leckey
f748c70132
refactor(core): merge flush and flush_async into flush! 2021-01-11 00:12:53 -08:00
Ryan Leckey
fbbf50a9d0
fix(mock): impl Async for Mock 2021-01-11 00:12:31 -08:00
Ryan Leckey
d81ec4a57f
fix(mysql): reset sequence ID on a new command 2021-01-11 00:12:20 -08:00
Ryan Leckey
e1e6f594c1
docs: split quickstart into mysql+tokio, mysql+async-std, and mysql+blocking 2021-01-10 19:52:50 -08:00
Ryan Leckey
8562dba0dc
feat(core): add ConnectOptions::parse for convenience 2021-01-10 19:52:19 -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
280e65c816
test: use +nightly for check/clippy 2021-01-10 11:36:41 -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
7144ebc8a0
style: clippy 2021-01-10 11:33:55 -08:00
Ryan Leckey
aa0b795fd3
test: make picking a target support wildcards 2021-01-10 11:31:05 -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
d2b31950cf
refactor: split <Connection> into <Connect>, <Close>, <Acquire>, and <Connection> 2021-01-09 16:37:36 -08:00
Ryan Leckey
e0e5b76f79
fix(mysql): flush after write Quit 2021-01-08 19:25:56 -08:00
Ryan Leckey
02f11b81c3
feat(mysql): impl close, ping 2021-01-08 17:46:06 -08:00
Ryan Leckey
4eae05f9b4
fix: allow sqlx to be compiled without any features 2021-01-08 16:58:04 -08:00
Ryan Leckey
2024136c9e
style(mysql): compile-in more code without a selected runtime 2021-01-08 16:42:42 -08:00
Ryan Leckey
16077216df
style: clippy 2021-01-08 16:39:12 -08:00
Ryan Leckey
5e7f35e28b
chore: update lockfile 2021-01-08 15:28:37 -08:00
Ryan Leckey
fd50f7b915
test: check 2021-01-08 15:28:31 -08:00
Ryan Leckey
2557557935
feat(mysql): impl full connect phase for MySQL with support for:
- mysql_native_password
 - caching_sha2_password
 - sha256_password
 - non-default auth plugin (new)
2021-01-08 15:28:26 -08:00
Ryan Leckey
91fa554063
chore(core): switch to (maintained) bytestring::ByteString from string::String<Bytes> 2021-01-08 15:26:39 -08:00
Ryan Leckey
e8ea502cbb
fix(core): blocking IO runtime compiles in isolation 2021-01-08 15:26:06 -08:00