Commit graph

2487 commits

Author SHA1 Message Date
Daniel Akhterov
1480bed73a Move deserialize into it's own file 2019-07-26 15:10:50 -07:00
Daniel Akhterov
d1d3ba6cb4 Add server status bitflags 2019-07-26 15:10:50 -07:00
Daniel Akhterov
2325150f9f Fix error packet default 2019-07-26 15:10:50 -07:00
Daniel Akhterov
74044d2e4f Add ErrPacket 2019-07-26 15:10:50 -07:00
Daniel Akhterov
f67490d790 Add OkPacket 2019-07-26 15:10:50 -07:00
Daniel Akhterov
9f0d41ea77 Use server_capabilities instead of client 2019-07-26 15:10:50 -07:00
Daniel Akhterov
6dce754a0d Add Auth Switch Request Packet 2019-07-26 15:10:50 -07:00
Daniel Akhterov
8d15a8e97b Add length of HandshakeResponsePacket 2019-07-26 15:10:50 -07:00
Daniel Akhterov
b6af918ac1 Add HandshakeResponsePacket struct 2019-07-26 15:10:50 -07:00
Daniel Akhterov
902970ddca Add length and sequence number to packets 2019-07-26 15:10:50 -07:00
Daniel Akhterov
12913139da Use bitflags and memchr 2019-07-26 15:10:50 -07:00
Daniel Akhterov
e56f364599 Add serialize for SSLRequestPacket 2019-07-26 15:10:18 -07:00
Daniel Akhterov
f46a1aee1d WIP: rustfmt and finsih inital handshake deserialization 2019-07-26 15:10:18 -07:00
Daniel Akhterov
9d8b567790 WIP: Mariadb initial handshake packet 2019-07-26 15:10:18 -07:00
Ryan Leckey
2b7f54f1a0 Add a single encode benchmark 2019-07-26 10:03:53 -07:00
Ryan Leckey
742946a66a Add a couple of regression tests for encoding 2019-07-26 09:22:50 -07:00
Ryan Leckey
7c70445e3d Move main.rs to examples/postgres 2019-07-26 09:20:09 -07:00
Ryan Leckey
de52268668 Move to functional encoding for Execute/Sync 2019-07-26 09:17:56 -07:00
Ryan Leckey
4ba916c979 Simplify describe message 2019-07-26 09:11:11 -07:00
Ryan Leckey
3d01db84a0 Add create/drop database to the main driver 2019-07-26 08:43:46 -07:00
Ryan Leckey
04f56570a4 Collapse into 1 crate 2019-07-25 23:41:50 -07:00
Ryan Leckey
0703a1b91a Clean up connection methods a bit 2019-07-25 23:34:39 -07:00
Ryan Leckey
6a92b36074
Merge pull request #4 from izik1/get_results-stream
Change `get_results` to produce a Stream
2019-07-25 22:00:23 -07:00
Zachery Gyurkovitz
a49191fd46 Change get_results to produce a Stream 2019-07-25 11:54:36 -07:00
Ryan Leckey
2d9442d439
Merge pull request #3 from izik1/impl-get_result
Implement get_result(s)
2019-07-22 09:32:06 -07:00
Zachery Gyurkovitz
2fb0c545b7 Implement get_results 2019-07-19 14:13:23 -07:00
Zachery Gyurkovitz
a4b5cfc408 Implement get_result 2019-07-19 14:12:07 -07:00
Ryan Leckey
089637a3b8 Remove fixed FIXME in bind.rs 2019-07-18 12:04:40 -07:00
Ryan Leckey
0575e33f2d Fix .bind (again) 2019-07-18 12:02:55 -07:00
Ryan Leckey
72d4472027
Merge pull request #2 from izik1/add-parameter-description-portal-suspended-describe
Add parameter description portal suspended describe
2019-07-18 12:01:04 -07:00
Zachery Gyurkovitz
6e7b18bc00 cargo fmt 2019-07-18 11:59:33 -07:00
Zachery Gyurkovitz
3f8508c0a4 Encode Describe messages 2019-07-18 11:54:24 -07:00
Zachery Gyurkovitz
f7a9b77f6b Decode ParameterDescription and PortalSuspended 2019-07-18 11:27:56 -07:00
Ryan Leckey
f4c0ac0485 Check for len + 1 instead of len when seeing if we have enough bytes in the stream 2019-07-18 10:31:44 -07:00
Ryan Leckey
3599d50811 Use advance instead of set in read loop 2019-07-17 23:01:26 -07:00
Ryan Leckey
28168c414d Switched to a functional approach for front-end message construction 2019-07-17 23:01:05 -07:00
Ryan Leckey
908f228fb5 Update Rust and dependencies 2019-07-17 22:04:38 -07:00
Ryan Leckey
d3460fd479 Fix command complete row parsing for row-less commands 2019-07-17 22:04:38 -07:00
Ryan Leckey
c3a067995f Add trace logs around decoding 2019-07-17 22:03:20 -07:00
Ryan Leckey
8589f0b907 Move to explicit prepare vs. implicit in execute builder 2019-07-17 12:43:46 -07:00
Ryan Leckey
97d6e7482c
Merge pull request #1 from izik1/zg/no-data-and-notification-response
Add decoding support for NoData and NotificationResponse
2019-07-17 11:06:53 -07:00
Zachery Gyurkovitz
e0d1adec88 Add decoding support for NoData and NotificationResponse 2019-07-17 11:02:40 -07:00
Ryan Leckey
c040c97cb3 Initial experiment with the low-level API and PREPARE + EXECUTE queries 2019-07-16 01:15:12 -07:00
Ryan Leckey
282050d17f Add #inline to BackendKeyData simple methods 2019-07-15 11:18:04 -07:00
Ryan Leckey
8e7a940201 Decode more Authentication types 2019-07-15 11:16:57 -07:00
Ryan Leckey
470804f542 Fix DataRow decode to make values accessible 2019-07-12 12:05:55 -07:00
Ryan Leckey
6cfd3a57d1 Optimize performance in several encode/decode programs 2019-07-11 13:52:45 -07:00
Ryan Leckey
f161fa3178 Optimize encode of StartupMessage 2019-07-11 10:08:57 -07:00
Ryan Leckey
da42be7d0a Implement DataRow and CommandComplete 2019-06-30 07:07:57 -07:00
Ryan Leckey
cfe522034e Implement RowDescription 2019-06-30 06:35:30 -07:00