Commit graph

33 commits

Author SHA1 Message Date
Ryan Leckey
b87edd5a9a Unify sqlx::CompiledSql and sqlx::SqlQuery into sqlx::Query as a common return type between sqlx::query and sqlx::query! 2019-11-22 22:41:37 +00:00
Ryan Leckey
b14d3da2ee Add sqlx::Row
- Rename the existing trait to an internal RawRow trait
 - Row is used for selecting a dyn and deferring pulling its values out till later
 - FromSqlRow -> FromRow
2019-11-22 18:34:29 +00:00
Ryan Leckey
fecd367e8d Update dependencies 2019-11-21 23:59:38 +00:00
Ryan Leckey
e47e90ec75 Add small tide example 2019-11-21 23:29:40 +00:00
Ryan Leckey
ee30296e32 Run rustfmt and remove some unneeded stuff 2019-08-28 08:08:24 -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
122700a789 Clean up examples 2019-08-20 18:26:37 -07:00
Ryan Leckey
6a18d0effd Wrap the query in a top-level SqlQuery to facilitate type inference. 2019-08-20 18:06:00 -07:00
Ryan Leckey
5e001045e2 Update rust and dependencies 2019-08-19 12:25:01 -07:00
Ryan Leckey
cdf7453f8f Run rustfmt 2019-08-18 20:42:45 -07:00
Ryan Leckey
d0b9bda74f Use the pool to insert quickly 2019-08-18 19:06:15 -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
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
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
7a067387e8 Make postgres and mariadb optional features of SQLx 2019-08-06 23:20:50 -07:00
Ryan Leckey
c60859b416 Run rustfmt on example 2019-08-06 23:14:30 -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
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
7dab021532 Initial experiment with FromRow 2019-08-05 19:07:36 -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
7c70445e3d Move main.rs to examples/postgres 2019-07-26 09:20:09 -07:00