90 Commits

Author SHA1 Message Date
Ryan Leckey
ad2cf1676f mysql: tweak type equivalence rules to try and support both rust best practices but still be compatible with the loose types of mysql 2020-03-25 03:56:39 -07:00
Ryan Leckey
1940b685d3 fix warnings from rustdoc 2020-03-24 01:36:17 -07:00
Ryan Leckey
0182ce92f2 make sqlx_core::runtime private and add a runtime module to sqlx-macros 2020-03-24 01:19:03 -07:00
Ryan Leckey
5ada3f3ae6 Implement #[derive(FromRow)] 2020-03-23 21:18:03 -07:00
Ryan Leckey
2a8906d1e5 add more documentation 2020-03-18 22:46:44 -07:00
Ryan Leckey
f7fd83381d Move RefExecutor into a now public executor module 2020-03-18 22:46:44 -07:00
Tom Dohrmann
c3aeb275c2 add derive macros for weak & strong enums and structs 2020-03-16 22:58:25 -07:00
Ryan Leckey
c44084dd11 move around re-exports 2020-03-16 19:54:46 -07:00
Ryan Leckey
444ffff127 Run rustfmt 2020-03-14 17:43:44 -07:00
Ryan Leckey
7ab07016da sqlite: initial work in connection 2020-03-14 17:43:44 -07:00
Ryan Leckey
ffa4420c08 remove dead_code allow (lints fixed now) 2020-03-11 02:49:06 -07:00
Ryan Leckey
f39852032a Add another missing import 2020-03-11 01:58:02 -07:00
Ryan Leckey
a9c3d9f44c Run rustfmt 2020-03-11 01:49:47 -07:00
Ryan Leckey
14c70f2854 Add a few missing imports (from the rebase) 2020-03-11 01:49:11 -07:00
Ryan Leckey
c9df8acc41 Add zero-allocation to MySQL query execution
WIP mysql compiles with types and executor commented out
2020-03-11 01:47:29 -07:00
Austin Bonander
800af574c5 query_macros: allow Option<&str> to be passed in place of String
closes #93
2020-03-11 01:47:16 -07:00
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
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
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
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
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
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
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
bbdc03c576 unified prepared statement interface 2019-11-19 19:55:17 +00:00
Austin Bonander
c993e4eee0 hide and comment on the existence of TyCons[Ext] 2019-11-19 19:55:17 +00:00
Austin Bonander
0e137e107a proof of concept, infer sql types as rust types at compile time 2019-11-19 19:55:17 +00:00
Austin Bonander
298421b45a prototyped statement preparation 2019-11-19 19:54:23 +00:00