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
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
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
3a76f9d207
prototyping sql!() macro
2019-11-19 19:54:23 +00:00
Austin Bonander
298421b45a
prototyped statement preparation
2019-11-19 19:54:23 +00:00
Austin Bonander
f7d743f673
prototyping compile-time checked sql macro
2019-11-19 19:54:23 +00:00
Ryan Leckey
57a5b56760
Minor tweaks and remove some commented code
2019-11-18 14:51:44 +00:00
Ryan Leckey
5b6c4ad8fa
Re-arrange tests for postgres connection
2019-09-11 22:25:41 -07:00
Ryan Leckey
b23b42e554
Restrict #[allow(unused)] to mariadb::protocol
2019-09-11 11:25:23 -07:00
Ryan Leckey
b911297586
Export MariaDb from root
2019-09-10 23:44:38 -07:00
Daniel Akhterov
f36d9bb9ba
Update ToSql and FromSql to be Db dependent
2019-09-10 23:29:11 -07:00
Ryan Leckey
b22203f98c
Remove (now) unused options file
2019-09-10 23:23:25 -07:00
Daniel Akhterov
62f11b5b0b
Add mariadb tests and HasSql
2019-09-10 23:14:39 -07:00
Ryan Leckey
fb877fee28
Adjust mariadb for async-trait usage
2019-09-10 22:51:23 -07:00
Ryan Leckey
47b06edad1
Run rustfmt
2019-09-10 22:31:18 -07:00