Commit graph

2508 commits

Author SHA1 Message Date
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
Ryan Leckey
e8ecbeda36 WIP Query 2019-06-29 21:57:04 -07:00
Ryan Leckey
c895ef52fe Decorate send/receive with trace logs for development 2019-06-29 21:40:33 -07:00
Ryan Leckey
735c8c366a Fix some lint warnings 2019-06-29 21:34:06 -07:00
Ryan Leckey
4c90e026f7 Improve performance and minor tweaks 2019-06-29 21:32:39 -07:00
Ryan Leckey
85710a16d6 Update Rust 2019-06-28 21:43:23 -07:00
Ryan Leckey
ee449d351b Update dependencies 2019-06-28 21:39:36 -07:00
Ryan Leckey
aa0b27af35 Minor clean up 2019-06-28 21:36:46 -07:00
Ryan Leckey
b81eda3673 Remove use_small_heuristics 2019-06-28 21:35:12 -07:00
Ryan Leckey
c59e65d65b Add some additional decode benchmarks 2019-06-28 00:30:43 -07:00
Ryan Leckey
903f674257 Assume Postgres isn't lying (use UTF-8 unchecked) 2019-06-28 00:30:12 -07:00
Ryan Leckey
631f91ea16 Add tests for BackendKeyData and ParameterStatus 2019-06-28 00:29:56 -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
8a4c5ea2fe Integrate new protocol crate to connection 2019-06-22 21:44:13 -07:00
Ryan Leckey
22f71df7c7 mason -> sqlx 2019-06-22 20:54:43 -07:00
Ryan Leckey
2c7475ef0b Implement StartupMessage and bench PasswordMessage 2019-06-22 20:51:10 -07:00
Ryan Leckey
96690d195f Add constructors for PasswordMessage 2019-06-22 20:15:16 -07:00
Ryan Leckey
6c02124eab WIP: Work on PasswordMessage and StartupMessage 2019-06-21 22:57:14 -07:00
Ryan Leckey
d3121c60cf Rename NoticeResponse to Response; clean up tests 2019-06-21 22:47:15 -07:00
Ryan Leckey
3fa880f5f3 Optimize encode performance for NoticeResponse 2019-06-21 20:58:32 -07:00
Ryan Leckey
65c41d0484 Implement Encode for NoticeResponse (with builder) 2019-06-21 20:35:41 -07:00
Ryan Leckey
888f18cdf2 WIP: NoticeResponseBuilder 2019-06-20 22:56:33 -07:00
Ryan Leckey
eaeef57b96 Experiment with lazy decoding of NoticeResponse 2019-06-20 22:41:13 -07:00
Ryan Leckey
a624578726 Add initial types for Auth and BackendKeyData 2019-06-18 23:16:01 -07:00
Ryan Leckey
4d8d476fbb Implement Encode for Message and test Decode on ReadyForQuery 2019-06-18 22:18:46 -07:00
Ryan Leckey
c894310422 Implement NoticeResponse 2019-06-18 22:04:07 -07:00
Ryan Leckey
3a2a32405c Initial start on a stand-alone crate for the protocol 2019-06-15 23:15:19 -07:00
Ryan Leckey
3bc3be1ab1 Work more on client/server protocol 2019-06-15 23:13:54 -07:00
Ryan Leckey
9b1d8fe3cc Implement Connection::execute for postgres 2019-06-11 03:41:15 -07:00
Ryan Leckey
5d73307028 Break up connection commands into their own files 2019-06-11 03:11:33 -07:00