Commit graph

2508 commits

Author SHA1 Message Date
Zachery Gyurkovitz
a195364330 Get rid of unneeded bytes from DataRows buffer 2019-08-19 23:18:39 -07:00
Ryan Leckey
69cc962d7b Clean up Decode some more, Box some fields in Message 2019-08-19 22:10:28 -07:00
Ryan Leckey
09c744d0b9 Use NonNull with ParameterStatus 2019-08-19 21:30:07 -07:00
Ryan Leckey
1822d25b76 Improve postgres decode benchmarks 2019-08-19 20:56:39 -07:00
Ryan Leckey
e5d2283eb0
Merge pull request #7 from izik1/zg-debyte
Remove bytes from row decoding
2019-08-19 20:56:26 -07:00
Zachery Gyurkovitz
04cf2c9189 Remove bytes from row decoding 2019-08-19 19:02:45 -07:00
Ryan Leckey
0c4cfaf2fc Add benchmarks for decode performance of DataRow and optimize a bit 2019-08-19 15:31:36 -07:00
Ryan Leckey
5e001045e2 Update rust and dependencies 2019-08-19 12:25:01 -07:00
Ryan Leckey
0603cb677e Add Diesel DSL to the select bench 2019-08-18 20:53:19 -07:00
Ryan Leckey
2c9720ed81 Run rustfmt 2019-08-18 20:43:26 -07:00
Ryan Leckey
4a48955134 Rewrite DataRow to pre-slice the values using Pin and NonNull 2019-08-18 20:43:17 -07:00
Ryan Leckey
07d663a5d5 Use from_utf8_unchecked when we know its UTF-8 2019-08-18 20:42:56 -07:00
Ryan Leckey
cdf7453f8f Run rustfmt 2019-08-18 20:42:45 -07:00
Ryan Leckey
f79e901a3c Add diesel to select bench 2019-08-18 19:32:23 -07:00
Ryan Leckey
200c87d9f0 Make the Message enum smaller 2019-08-18 19:06:28 -07:00
Ryan Leckey
d0b9bda74f Use the pool to insert quickly 2019-08-18 19:06:15 -07:00
Ryan Leckey
9f8c510d36 Add a simple benchmark comparing SELECT performance 2019-08-18 19:06:06 -07:00
Ryan Leckey
c280ad587f Move to sqlx::query( ... ).execute style API 2019-08-18 18:33:45 -07:00
Ryan Leckey
b8857af916 Make examples work again, initial experiment with sqlx::Client 2019-08-10 16:36:20 -07:00
Ryan Leckey
186fa8928b Rework public API to be trait-focused 2019-08-10 15:31:13 -07:00
Daniel Akhterov
14c1a35789 Add result_set binary test 2019-08-09 22:38:56 -07:00
Daniel Akhterov
6f8b2edead WIP: Test 2019-08-09 22:35:16 -07:00
Ryan Leckey
ad81528b99 Add time measuring to contacts demo 2019-08-09 22:00:40 -07:00
Ryan Leckey
78b3ae4a19 Add connection string parsing for postgres, run rustfmt over mariadb, use constants for ErrorCode 2019-08-09 21:46:49 -07:00
Ryan Leckey
feaa209c33 Some notes 2019-08-08 18:18:29 -07:00
Ryan Leckey
fd4cc043ed Make Pool generic over Backend 2019-08-08 18:05:16 -07:00
Ryan Leckey
acf78d5a43 Initial version of connection pool 2019-08-08 10:22:20 -07:00
Ryan Leckey
c35da49577 Fix postgres usage of ConnectOptions 2019-08-07 23:05:58 -07:00
Ryan Leckey
89d9d02624 Remove a few outdated TODOs 2019-08-07 22:50:52 -07:00
Ryan Leckey
6fb425129e Merge branch 'master' of ssh://github.com/mehcode/sqlx 2019-08-07 00:08:00 -07:00
Ryan Leckey
c9ac5ae0c5 Make ConnectOptions internally generic over lifetime (with Cow) 2019-08-07 00:07:46 -07:00
Ryan Leckey
7a067387e8 Make postgres and mariadb optional features of SQLx 2019-08-06 23:20:50 -07:00
Ryan Leckey
bb17e3b284 Tighten encapsulation a bit after recent backend generalization 2019-08-06 23:15:03 -07:00
Ryan Leckey
c60859b416 Run rustfmt on example 2019-08-06 23:14:30 -07:00
Ryan Leckey
0f4b9dcc89
Update README.md 2019-08-06 22:47:32 -07:00
Ryan Leckey
9df8813d4b Remove example playground and add a small example, a todo cli 2019-08-06 22:28:06 -07:00
Ryan Leckey
a0f8117389 [postgres] Fix CommandComplete decoding for one-word SQL commands 2019-08-06 22:27:44 -07:00
Ryan Leckey
643bc6ed0e Sort dependencies 2019-08-06 21:44:43 -07:00
Ryan Leckey
1c64dc32ab Disable default features of runtime 2019-08-06 21:33:35 -07:00
Daniel Akhterov
c019f91fc6 Fix prepared statement execution 2019-08-06 17:40:30 -07:00
Daniel Akhterov
433ec628da Deserialize -> Decode 2019-08-06 16:13:56 -07:00
Daniel Akhterov
1137fe4150 Update serialize trait to be Encode and remove encoder for a Vec<u8> which implements BufMut 2019-08-06 15:55:40 -07:00
Ryan Leckey
82c72c13c2 Remove commented out stuff in types.rs 2019-08-06 12:54:28 -07:00
Ryan Leckey
e2ace30dfd Try out a different form of stream/select consumption 2019-08-06 09:08:33 -07:00
Ryan Leckey
0fa769f91b Try out nulls in the example 2019-08-06 09:03:11 -07:00
Ryan Leckey
1db85d1069 Generalize ToSql, AsSql, FromSql, and FromSql over Backend 2019-08-06 08:58:51 -07:00
Ryan Leckey
0b98527550 Update rustc and dependencies 2019-08-06 07:19:06 -07:00
Daniel Akhterov
9bb1cd1092 WIP: Prepared statements 2019-08-05 23:44:45 -07:00
Daniel Akhterov
4c1da595cb Fix next_packet 2019-08-05 22:45:25 -07:00
Daniel Akhterov
6696e54c33 Change peek_tag to always return u8 instead of Optional 2019-08-05 21:16:44 -07:00