Commit graph

2430 commits

Author SHA1 Message Date
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
Daniel Akhterov
23d13adb12 Fix async tests 2019-08-05 21:16:44 -07:00
Daniel Akhterov
b731dbe90f WIP: Update next_packet to work more efficiently and correctly 2019-08-05 21:16:44 -07:00
Daniel Akhterov
31188aa919 Comment the Decoder 2019-08-05 21:16:44 -07:00
Daniel Akhterov
ac6006733c WIP: Binary result set 2019-08-05 21:16:44 -07:00
Daniel Akhterov
ffe25704fc Fix capabilities 2019-08-05 21:16:44 -07:00
Daniel Akhterov
667ee3b56f Add basic serialization tests 2019-08-05 21:16:44 -07:00
Daniel Akhterov
9ca4e10836 WIP: Add serde for prepared statements 2019-08-05 21:16:44 -07:00
Daniel Akhterov
3ddf4508af Update decode to decode into signed types 2019-08-05 21:16:44 -07:00
Daniel Akhterov
18d5fa7ca2 FIX: int<lenenc> encoding keyword bytes 2019-08-05 21:16:44 -07:00
Daniel Akhterov
f3598b1721 Re-export all the things. 2019-08-05 21:16:44 -07:00
Daniel Akhterov
9ff470c730 Comment code 2019-08-05 21:16:44 -07:00
Daniel Akhterov
2642f09546 FIX: string<lenenc> 2019-08-05 21:16:44 -07:00
Ryan Leckey
7dab021532 Initial experiment with FromRow 2019-08-05 19:07:36 -07:00
Ryan Leckey
bbc0d70366 Run rustfmt 2019-08-05 08:16:35 -07:00
Ryan Leckey
c67f751968 [postgres] Initial experiment with FromSql 2019-08-05 08:11:46 -07:00
Ryan Leckey
ebb3588d30 [postgres] Initial experiments with ToSql 2019-08-05 08:11:42 -07:00
Ryan Leckey
ff3cc6a2eb [postgres] Optimize code quality of encoding 2019-08-05 08:11:29 -07:00
Ryan Leckey
3496819e5b [postgres] Implement Close and Describe 2019-08-05 08:10:52 -07:00
Ryan Leckey
d4ef3212a5
Merge pull request #5 from danielakhterov/master
MariaDB driver
2019-07-26 23:04:55 -07:00
Daniel Akhterov
28bbc400d2 Make tests non async 2019-07-26 15:49:00 -07:00
Daniel Akhterov
2cce6fba01 Rename and merge crate as a package 2019-07-26 15:27:55 -07:00
Daniel Akhterov
6114f39cb6 Update parameters to serialization 2019-07-26 15:14:50 -07:00
Daniel Akhterov
1dd2efc000 Use ConnContext for tests instead of establishing an real connection 2019-07-26 15:14:50 -07:00
Daniel Akhterov
7eee44cdc2 Fix tests 2019-07-26 15:14:50 -07:00
Daniel Akhterov
05024dbd0a Fix result set decoding OkPacket instead of EofPacket at the end of the transaction 2019-07-26 15:14:50 -07:00
Daniel Akhterov
47598bbcd6 WIP: Resultset test without connection 2019-07-26 15:14:50 -07:00
Daniel Akhterov
50d9c39a07 Use Bytes::slice instead of Bytes::from for string/byte decoding 2019-07-26 15:14:50 -07:00
Daniel Akhterov
d3101d611d WIP: Move deserializing resultset code into resultset function 2019-07-26 15:14:50 -07:00