Ryan Leckey
f462343787
Split Executor into Executor and RefExecutor
...
* Allow `conn.fetch(" ... ")` to be called where `conn` is an owned Connection
* Executor::fetch -> RefExecutor::fetch_by_ref
* Executor::fetch_by_ref -> Executor::fetch
* Move `Connection::describe` to `Executor::describe`
* `Transaction` is no longer a `Connection`
* `Connection` has `Executor` as a super-trait again which greatly simplifies bounds
2020-03-11 01:43:27 -07:00
Ryan Leckey
0afcf33395
rename Executor::execute to Executor::fetch
2020-03-11 01:43:27 -07:00
Ryan Leckey
72b60e8a7d
remove the DB type parameter from HasCursor and push to an associated type; remove Cursor::first
2020-03-11 01:43:27 -07:00
Ryan Leckey
d981262e7e
row: RowIndex -> ColumnIndex and de-duplicate logic with macros
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
55ffd989e1
postgres: add support for simple queries (that do not return results)
2020-03-11 01:43:17 -07:00
Ryan Leckey
7404708bab
adjust Cursor::map to work through black magic hacks and hope we get GATs soon
2020-03-11 01:43:17 -07:00
Ryan Leckey
a374c18a18
postgres: rewrite protocol in more iterative and lazy fashion
2020-03-11 01:43:17 -07:00
Ryan Leckey
3795d15e1c
postgres: break out TLS and SASL into their own files
2020-03-11 01:43:04 -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
Ryan Leckey
bb17ebfbbd
make Connect extend Connection to simplify bounds
2020-03-11 01:42:34 -07:00
Ryan Leckey
d3d58ef0cf
remove unused methods from Arguments: is_empty, len, size
2020-03-11 01:42:34 -07:00
Ryan Leckey
05bc3ba987
Prepare v0.2.6
2020-03-10 15:40:33 -07:00
Ryan Leckey
d15853f105
Update CHANGELOG
2020-03-10 15:38:40 -07:00
Ryan Leckey
fc610375e8
Merge pull request #126 from repnop/bitfiddling-strikes-back
...
Fix null bitmap bytes being cleared
2020-03-10 15:33:04 -07:00
Wesley Norris
737dd038c5
Fix null bitmap being cleared
2020-03-09 20:31:49 -04:00
Ryan Leckey
80f402b7e6
Merge pull request #114 from thedodd/dodd/export-transaction
...
Export sqlx_core::Transaction.
2020-02-24 19:04:35 -08:00
Anthony Dodd
5dae1b6842
Export sqlx_core::Transaction.
2020-02-24 20:45:41 -06:00
Austin Bonander
18a925f1c2
Merge pull request #109 from timmythetiny/ab/trailing-comma-fix
...
Fix #105 , allow trailing commas in query macros
2020-02-20 21:48:38 -08: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
Tim Harding
f0b276ea86
Added tests for trailing commas on query_file! and query_file_as!
2020-02-09 20:41:16 -08:00
timmythetiny
cefd377020
Fix #105 , allow trailing commas in query macros
2020-02-08 16:14:50 -08:00
Ryan Leckey
f8e112f4d9
Prepare v0.2.5
2020-02-01 00:49:27 -08:00
Ryan Leckey
4679d3b611
Prepare CHANGELOG
2020-02-01 00:45:57 -08:00
Ryan Leckey
7201f637bf
Fix #104 , need to advance buffer index to account for the null (one 32-bit length val of -1)
2020-02-01 00:33:59 -08:00
Austin Bonander
eff7c9e125
fix Pool
to remove possibility of "leaking" connections ( #84 )
...
* fix `Pool` to reduce possibility of "leaking" connections
now uses RAII guards to control `SharedPool::size`
* add smoke test for `Pool` to both Postgres and MySQL tests
add `Pool::is_closed()`
* fix documentation re: pool
* refactor pool implementation to not use futures oneshot channels
https://github.com/launchbadge/sqlx/pull/84#issuecomment-580476223
* run cargo fmt
* Pool: remove superfluous guard struct, document some internal methods
2020-01-31 23:33:42 -08:00
Nicholas Connor
745c5c3957
Updated the README example with acquire connection ( #99 )
...
* Updated the README example with acquire connection
Initially from reading the docs and examples I tried to use `&mut pool` instead of `&mut conn`. The compiler gave me an error that `Pool<MySql>` didn't implement `Executor`. I had to do a bit of digging and eventually just viewed the source of `Pool` to find `acquire()`, `try_acquire()` etc.
I think this change makes it a bit easier for someone to get started.
* Update README.md to reference initial pool declaration
* Fixed compile issues and added examples of using &mut &pool
2020-01-31 23:30:08 -08:00
Ryan Leckey
bdfea1a3cb
Merge pull request #90 from xcthulhu/master
...
Making realworld-postgres example compile
2020-01-31 23:28:49 -08:00
Ryan Leckey
97eec46a3b
Merge pull request #101 from launchbadge/ab/mysql-floats
...
fix and test floats in MySQL
2020-01-30 12:27:53 -08:00
Austin Bonander
2349978417
fix and test floats in MySQL
2020-01-30 12:17:32 -08:00
Ryan Leckey
7233caa579
Merge pull request #91 from Ace4896/todos-postgres-example
...
Add TODOs CLI Example for Postgres
2020-01-30 09:39:34 -08:00
Austin Bonander
afaee44512
README: shorten and sweeten DATABASE_URL
note
2020-01-30 03:36:58 -08:00
Austin Bonander
136b51b019
README: specify query!()
works at compile-time
2020-01-30 03:34:59 -08:00
Austin Bonander
5966fae7c5
README: note req. of DATABASE_URL
for query!()
2020-01-30 03:34:09 -08:00
Austin Bonander
02075c74bd
fix tests/mysql-macros.rs
2020-01-28 19:53:39 -08:00
Austin Bonander
140d9cb061
Merge pull request #96 from yaahc/raw-idents
...
Enable raw ident support
2020-01-28 19:48:19 -08:00
Jane Lusby
ff731ce503
Enable raw ident support
2020-01-28 18:56:25 -08:00
Jon Pacheco
cc7ef143cf
Make "done" attribute not null
2020-01-28 15:10:09 +00:00
Jon Pacheco
4f61390f15
Address comments
2020-01-28 08:30:30 +00: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
Jon Pacheco
eece922ac3
Add todos CLI example for postgres
2020-01-27 10:17:58 +00:00
Matthew Doty
1e5e1eceb4
Making realworld-postgres example compile
2020-01-26 19:43:39 -05: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
8ca3429327
format code
2020-01-24 18:54:41 +01:00
Tom Dohrmann
a94e60880d
remove unused imports
2020-01-24 18:52:01 +01:00
Tom Dohrmann
1e9e816fab
add proper encode/decode test
2020-01-24 18:36:04 +01:00
Tom Dohrmann
60ef862713
lift if to pattern match with pattern guard
2020-01-24 18:35:25 +01: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