Commit graph

316 commits

Author SHA1 Message Date
Ryan Leckey
4b2b08e63a Remove more from types that have been moved out 2019-09-06 14:51:21 -07:00
Ryan Leckey
837e12d797 Move protocol around a bit more and work more towards the refactor 2019-09-06 14:50:57 -07:00
Ryan Leckey
8ada85ef62 Fix visible tests in mariadb protocol 2019-09-06 14:14:35 -07:00
Ryan Leckey
6949b35eec More work towards mariadb protocol refactor 2019-09-05 15:20:41 -07:00
Ryan Leckey
94fe35c264 More work towards mariadb protocol refactor 2019-09-05 13:37:43 -07:00
Ryan Leckey
b0707bba7b More work towards refactoring packets in MariaDb 2019-09-04 22:32:15 -07:00
Daniel Akhterov
6dc196707d WIP 2019-09-04 20:57:17 -07:00
Ryan Leckey
dce5718981 Clean up Pool/Connection impl and allow an explicit checkout from Pool to Connection 2019-09-04 17:56:58 -07:00
Ryan Leckey
7bf023b742 Add some tests and fix fetch_optional / fetch_one behavior 2019-09-03 08:46:09 -07:00
Ryan Leckey
56a53f6c98 Comment out failure in Cargo.toml 2019-09-03 07:41:25 -07:00
Ryan Leckey
0a2b1151c1 Add fetch_one and fetch_all (fetch -> Vec) helpers 2019-09-03 07:29:38 -07:00
Ryan Leckey
d36366ef41 Clean up warnings 2019-09-03 07:17:17 -07:00
Ryan Leckey
7b992f2829 Remove leading = in dependency versions 2019-09-03 06:56:22 -07:00
Ryan Leckey
451e0ee73f Parse outputs a statement, not a portal 2019-09-03 06:54:51 -07:00
Ryan Leckey
0c945cbbe2 Remove the WIP statement caching (to add back properly later) 2019-09-03 06:54:37 -07:00
Ryan Leckey
e903884451 Update dependencies 2019-09-02 17:39:04 -07:00
Ryan Leckey
d4096cf2a4 Make more modules private and opt to expose some types/traits directly 2019-09-02 17:25:13 -07:00
Ryan Leckey
abb7d12087 Improve docs around errors 2019-09-02 17:18:33 -07:00
Ryan Leckey
9d7eff2ca7 Expose RawConnection::close on Connection (and rename from finalize) 2019-09-02 17:09:23 -07:00
Ryan Leckey
fe697fee1d Add a ping method on Connection to verify the connection is still valid 2019-09-02 17:00:44 -07:00
Ryan Leckey
247dd84420 Make test name in postgres a bit more verbose 2019-09-02 16:53:58 -07:00
Ryan Leckey
d26f72e1e6 Clean up Postgres Connection and start (finally) bubbling database errors 2019-09-02 16:52:54 -07:00
Ryan Leckey
1b7e7c2729 Use a 2-byte buffer for writing an i16 2019-09-02 16:52:06 -07:00
Ryan Leckey
5c5d027bf9 Remove an unneeded explicit error conversion 2019-08-29 00:45:34 -07:00
Ryan Leckey
b4c39b6c7a Add a connection URL abstraction 2019-08-29 00:43:27 -07:00
Ryan Leckey
9629a1fa95 Tweak error_codes and types so they compile 2019-08-29 00:30:25 -07:00
Ryan Leckey
cbd56f3fa9 Update MariaDbRawQuery to be MariaDbQueryParameters
Also coment out module imports for build failures so we get a green build to work on
2019-08-29 00:26:37 -07:00
Ryan Leckey
c8559cac84 Remove postgres::protocol::{Buf, BufMut} and use crate::io::{Buf, BufMut} instead 2019-08-29 00:16:54 -07:00
Ryan Leckey
f67421b50d Enhance Executor definition and remove inherent Executor methods on Pool and Connection 2019-08-28 08:48:18 -07:00
Ryan Leckey
ee30296e32 Run rustfmt and remove some unneeded stuff 2019-08-28 08:08:24 -07:00
Daniel Akhterov
7077790452 WIP 2019-08-28 08:03:29 -07:00
Daniel Akhterov
91fc27a5b8 Test Compile 2019-08-28 08:03:29 -07:00
Daniel Akhterov
0aa64f8ebb Test Compile 2019-08-28 08:02:18 -07:00
Daniel Akhterov
0917e84e0f Remove enum_try_from crate 2019-08-28 08:02:18 -07:00
Daniel Akhterov
3f83fcb24d Use tokio 2019-08-28 08:02:18 -07:00
Ryan Leckey
45f1c02027 Remove useless flush fn on postgres raw conn 2019-08-25 14:55:38 -07:00
Ryan Leckey
37c22eb55d Propagate some decode failures 2019-08-25 14:52:13 -07:00
Ryan Leckey
0d49de2d13 Remove broken benchmark 2019-08-25 14:06:59 -07:00
Ryan Leckey
c33530b25c Extract BufStream from PostgresRawConnection 2019-08-25 14:01:07 -07:00
Ryan Leckey
6c98ba01b8 Add inherent helpers to executors 2019-08-22 22:23:15 -07:00
Ryan Leckey
c5a3fc8d7e Split up RawQuery into QueryParameters and &str 2019-08-22 21:53:55 -07:00
Ryan Leckey
459a091f74 Initial work on moving to sqlx::Error 2019-08-22 19:59:03 -07:00
Ryan Leckey
aefcdd23fa Use postgres instead of pg for the module name 2019-08-22 19:59:03 -07:00
Ryan Leckey
9ed276d454
Update README.md 2019-08-21 21:53:51 -07:00
Ryan Leckey
7671fc403f
Update README.md 2019-08-21 21:51:59 -07:00
Ryan Leckey
9e64093860
Update README.md 2019-08-21 21:51:50 -07:00
Ryan Leckey
bb617f6fa1
Update README.md 2019-08-21 21:51:32 -07:00
Ryan Leckey
614df7fb66 Add various bits of documentation 2019-08-20 22:10:16 -07:00
Ryan Leckey
99e4d200b2 FromRow -> FromSqlRow 2019-08-20 21:42:25 -07:00
Ryan Leckey
b33bc3c017 Clean up SQL type (de)serialize 2019-08-20 21:01:19 -07:00