Ryan Leckey
ab32d0a5c4
Add some initial type integration tests for Postgres
2019-11-23 09:02:56 +00:00
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
1b92fe733b
Merge pull request #34 from mehcode/ab/protocol_err
...
`Error::Protocol` refactor
2019-11-22 18:34:13 +00:00
Austin Bonander
4d033963ce
use protocol_err! instead of InvalidData in more places
2019-11-22 17:57:00 +00:00
Austin Bonander
905320ff39
return Error::Protocol instead of io::ErrorKind::InvalidData
2019-11-22 17:33:44 +00:00
Ryan Leckey
a22fe1755b
Merge pull request #31 from mehcode/ab/bye-crossbeam
...
simplify pool implementation, run rustfmt
2019-11-22 17:16:46 +00:00
Austin Bonander
a9fb263520
simplify pool implementation, run rustfmt
2019-11-22 17:06:32 +00:00
Ryan Leckey
8bd768afe8
Merge pull request #24 from mehcode/ab/codec
...
rename `FromSql/ToSql` -> `Decode/Encode`
2019-11-22 13:40:45 +00:00
Ryan Leckey
f394acdb1c
Minor cargo.toml cleanup
2019-11-22 11:52:03 +00:00
Ryan Leckey
061b7819ab
Remove the RawConnection concept and fold into Backend
2019-11-22 11:48:49 +00:00
Austin Bonander
d332558b25
rename FromSql/ToSql -> Decode/Encode
...
closes #18
2019-11-22 11:05:17 +00:00
Ryan Leckey
c7ce15f977
Merge pull request #22 from mehcode/ab/facade
...
implement facade crate so macros can be used from root namespace
2019-11-22 10:46:06 +00:00
Austin Bonander
aee3c4fe48
remove unnecessary .gitignore elements
2019-11-22 10:36:49 +00: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
e47e90ec75
Add small tide example
2019-11-21 23:29:40 +00:00
Ryan Leckey
f02b01dcb6
Slim down Connection and require &mut on Executor
2019-11-21 23:29:32 +00:00
Ryan Leckey
4b025e7249
Remove rustfmt.toml
2019-11-21 23:28:23 +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
d6e9c47da8
Add a few protocol codec benchmarks
2019-11-21 18:18:42 +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
Ryan Leckey
755cfaddd1
Merge remote-tracking branch 'origin/ab/sql-macro'
2019-11-20 17:05:36 +00:00
Ryan Leckey
3b76ecbdb1
Pin to stable
2019-11-20 17:05:21 +00:00
Austin Bonander
bf6aead81c
comment on weird use of match/if-guards
2019-11-20 09:26:31 +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
2ab07798fc
fix sqlx-macros/Cargo.toml
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
b05ec7686a
add parameter support to the sqlx macro
2019-11-19 19:54:23 +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
1b855f581b
Update dependencies (remove git patch for async-stream)
2019-09-11 11:26:15 -07:00
Ryan Leckey
b23b42e554
Restrict #[allow(unused)] to mariadb::protocol
2019-09-11 11:25:23 -07:00
Ryan Leckey
b185dcfb0e
Update rustc
2019-09-10 23:46:22 -07:00
Ryan Leckey
b911297586
Export MariaDb from root
2019-09-10 23:44:38 -07:00