202 Commits

Author SHA1 Message Date
Ryan Leckey
10232a2cdc remove re-exports from sqlx-core and let sqlx fully define the module layout 2020-03-11 01:45:04 -07:00
Ryan Leckey
f337f1c602 postgres: implement text mode for chrono and clean up type tests 2020-03-11 01:44:41 -07:00
Ryan Leckey
47f3d77e59 query_as: fully implement query_as, required a db-specific ext trait 2020-03-11 01:44:41 -07:00
Ryan Leckey
433aab1e5b postgres: use RawValue in Decode and implement row-returning simple queries 2020-03-11 01:44:06 -07:00
Ryan Leckey
dd5f250e5e decode: add lifetime to Decode; impl Decode for &str and &[u8]; remove DecodeError 2020-03-11 01:43:27 -07:00
Austin Bonander
0cb7bd1185 make macros work again 2020-03-11 01:43:27 -07:00
Ryan Leckey
a374c18a18 postgres: rewrite protocol in more iterative and lazy fashion 2020-03-11 01:43:17 -07:00
Ryan Leckey
ea1a4fb042 add Cursor and rewrite Executor/Query over it
* this breaks a lot internally as-is
 * mysql needs a restructure
2020-03-11 01:43:04 -07:00
Anthony Dodd
5dae1b6842
Export sqlx_core::Transaction. 2020-02-24 20:45:41 -06:00
Tim Harding
93001cf90c Remove third macro arm
Merged third arm into second arm with a metavariable
2020-02-20 20:02:40 -08:00
timmythetiny
cefd377020 Fix #105, allow trailing commas in query macros 2020-02-08 16:14:50 -08:00
Austin Bonander
214467841d
Merge pull request #85 from yaahc/unstable-features
Add doc_cfg attributes for conditional portions of the API
2020-01-27 16:04:18 -08:00
Austin Bonander
f0c88da152
Merge pull request #71 from Freax13/master
add derives for Encode and Decode
2020-01-24 13:13:06 -08:00
Tom Dohrmann
40a0e113b7 copy doc comment 2020-01-24 18:34:57 +01:00
Jane Lusby
7d3772e23b Resolve PR comments 2020-01-22 20:49:22 -08:00
Jane Lusby
ea03fa47e7 Initial commit with doc_cfg changes 2020-01-22 13:10:10 -08:00
Austin Bonander
efed9b3d6d sqlx-macros: fix handling of invalid idents
add regression test with Trybuild

fix lint warnings as otherwise Trybuild wanted to include them
2020-01-21 01:52:57 -08:00
Tom Dohrmann
bb933decb7 add derives for Encode and Decode 2020-01-18 13:30:16 +01:00
Ryan Leckey
3a2a34381f
Streamline CI to run build _then_ db checks (#68)
* Streamline CI to run build _then_ db checks

* Run rustfmt

* Test the sqlx-core manifest explicitly for unit tests

* Fix incorrect feature enabled in CI

* Make doctests conditional on runtime

* Clean up CI file a bit more

* Tweak CI file one more last time
2020-01-16 18:14:47 -08:00
Ryan Leckey
1bb6487ddf Remove use of ::connect helper that was removed 2020-01-15 02:04:03 -08:00
Ryan Leckey
92f12e11aa Add support for Tokio 2020-01-15 01:17:33 -08:00
Austin Bonander
da5c538d22 strip out proc-macro-hack 2020-01-15 00:05:09 -08:00
Ryan Leckey
28ed854b03 Extract Connection::open into a new trait Connect::connect 2020-01-14 23:58:17 -08:00
Ryan Leckey
12a9976bfb The macros module doesn't exist without a db engine 2020-01-11 01:00:41 -08:00
Austin Bonander
43f1164823 fix macro examples and tests 2020-01-03 19:02:31 -08:00
Austin Bonander
2c424b6d63 allow slices to be passed to query!()
capture args by ref
2019-12-27 23:30:06 -08:00
Ryan Leckey
8626cf5ba8 Tweak macro to only accept literals 2019-12-27 23:11:23 -08:00
Ryan Leckey
9b0f34b0ce Fix a couple minor nits with Pool and run rustfmt 2019-12-27 22:47:25 -08:00
Ryan Leckey
a23bfb60eb Clean up the example a touch 2019-12-27 21:50:13 -08:00
Ryan Leckey
017ee38725 De-duplicate error impls and forward MySqlConnection/PgConnection to crate root 2019-12-27 21:50:13 -08:00
Austin Bonander
7d745f98ea implement query_as!() et al, document query macros 2019-12-27 21:45:31 -08:00
Ryan Leckey
d76b1357da Audit MySql and Postgres protocols 2019-12-27 17:31:01 -08:00
Ryan Leckey
d307e3cccf Collapse a cfg attribute 2019-11-27 22:35:34 -08:00
Austin Bonander
fc07830639 implement facade crate so macros can be used from same namespace 2019-11-22 10:30:16 +00:00
Ryan Leckey
fecd367e8d Update dependencies 2019-11-21 23:59:38 +00:00
Ryan Leckey
2b2d37573c Merge remote-tracking branch 'origin/ab/async-std' 2019-11-21 23:32:53 +00:00
Ryan Leckey
f02b01dcb6 Slim down Connection and require &mut on Executor 2019-11-21 23:29:32 +00:00
Austin Bonander
020eed90c8 port to async-std, misc fixes 2019-11-21 22:10:49 +00:00
Ryan Leckey
42c3073089 connection.bak -> connection 2019-11-21 21:40:31 +00:00
Ryan Leckey
ec6a3d8021 Fix typo in module comment 2019-11-21 19:33:39 +00:00
Ryan Leckey
47867398c2 Run rustfmt 2019-11-21 18:19:01 +00:00
Ryan Leckey
067f1e613c Expose postgres::protocol with unstable flag 2019-11-21 18:18:31 +00:00
Ryan Leckey
426b6926d7 Fix tests for row description 2019-11-21 18:18:15 +00:00
Austin Bonander
d25095bd7b fix all nits 2019-11-19 19:56:21 +00:00
Austin Bonander
1733adaad7 fix comments, errors and run rustfmt 2019-11-19 19:55:17 +00:00
Austin Bonander
d3df2dd210 "prepare" -> "describe" and use unnamed statement 2019-11-19 19:55:17 +00:00
Austin Bonander
5cbd3f9e20 fix clippy, rustfmt errors 2019-11-19 19:55:17 +00:00
Austin Bonander
8d844033f7 remove src/bin/cargo-sqlx.rs 2019-11-19 19:55:17 +00:00
Austin Bonander
22f3d6cae1 implement binary types for MariaDB 2019-11-19 19:55:17 +00:00
Austin Bonander
bbdc03c576 unified prepared statement interface 2019-11-19 19:55:17 +00:00