Ryan Leckey
716517a84f
chore: add bstr and git2 to "all-types" feature
2020-12-18 21:56:12 -08:00
Matt Paul
012d72464e
Make mockable-todos example compile
2020-12-18 21:33:52 -08:00
Josh Triplett
71a72e7c67
Add support for git2::Oid (under the git2 feature flag)
...
This allows queries to convert between Oid and SQL data types.
2020-11-21 14:32:29 -08:00
Josh Triplett
47b0973bdb
Add support for bstr::BString (under the bstr feature flag)
...
This allows queries to convert between BString and SQL data types.
2020-11-21 14:03:11 -08:00
Ryan Leckey
f20da8e663
prepare v0.4.1
2020-11-12 08:57:14 -08:00
Ryan Leckey
4aa2f37140
select a runtime for docs.rs
2020-11-12 08:57:03 -08:00
Ryan Leckey
0b03dc6762
prepare v0.4.0
2020-11-12 07:46:13 -08:00
Ryan Leckey
f22a3f5a5d
remove default runtime, you must now always select a runtime
2020-11-12 07:42:31 -08:00
Jonas Platte
b14266ba2e
Add rustls support
2020-11-12 07:32:59 -08:00
Jonas Platte
a161bcba05
Rename cargo features in preparation for rustls support
2020-11-12 07:32:21 -08:00
Raphaël Thériault
04f68632b4
JSON+macros example using overrides
2020-11-12 07:21:54 -08:00
Jonas Platte
277d0413bc
Bump paste version
2020-10-13 10:04:05 -07:00
Kramer Hampton
74d2f57de3
fix: add todos example to workspace
2020-10-13 09:55:51 -07:00
Chloe Ross
1949445cf0
other: don't deadname self
2020-07-31 04:14:48 -07:00
Julius de Bruijn
1a59d3308a
Pg: Implementing BIT and VARBIT using BitVec
2020-07-27 03:36:44 -07:00
Ryan Leckey
e419bf9dfa
remove removed examples from workspace
2020-07-27 02:23:34 -07:00
Ryan Leckey
22f1f93b79
chore: prepare sqlx v0.4.0-beta.1 and sqlx-cli v0.1.0-beta.1
2020-07-27 01:43:02 -07:00
Ryan Leckey
f298eb3cf1
Merge remote-tracking branch 'raftario/embedded-migrations'
2020-07-26 18:03:59 -07:00
Julius de Bruijn
0c9bea4ab2
Fixing panics for disabled statement cache
2020-07-24 07:24:23 -07:00
Raphaël Thériault
92646e00b8
Fix migrate! and add migration test
2020-07-23 17:46:27 -04:00
Raphaël Thériault
e5e9665bd9
Add migrate! macro for embedded migrations
2020-07-23 14:22:50 -04:00
Ryan Leckey
793f247604
refactor: PoolOptions::new() takes no parameters and the final .connect method takes the URI
2020-07-14 06:07:29 -07:00
Ryan Leckey
61e4a4f566
feat: finish v1 of both cli and embedded migrations
2020-07-12 03:43:55 -07:00
Julius de Bruijn
dce7c71c37
Add macro extensions for Decimal
2020-07-09 12:32:19 -07:00
Julius de Bruijn
fd837fce09
Support for rust_decimal::Decimal
2020-07-09 12:32:19 -07:00
Austin Bonander
17e88ac1a4
perf: implement pool benchmark, make fairness an option
2020-07-03 05:59:20 -07:00
Ryan Leckey
518eb0c41a
chore: add any to all-databases and to each db test in CI
2020-06-27 06:04:30 -07:00
Ryan Leckey
af7bd71ab2
test: require any feature for any/any test
2020-06-27 04:10:06 -07:00
Ryan Leckey
a7117dd71b
feat(any): introduce the Any database driver which enables choosing the database driver at runtime
2020-06-27 04:07:40 -07:00
Zachery Gyurkovitz
2adfb1926a
misc: Don't deadname myself in the authors
2020-06-23 13:10:03 -07:00
Ryan Leckey
d73434a19e
test: enable postgres/derives test
2020-06-12 15:33:19 -07:00
Ryan Leckey
6497d67b6a
feat(mssql): add macro support
2020-06-07 16:29:46 -07:00
Ryan Leckey
53c074130f
Merge remote-tracking branch 'origin/ab/macro-fixes'
2020-06-07 02:35:12 -07:00
Ryan Leckey
0386d6ed6c
test: re-initialize github workflow
2020-06-07 02:21:58 -07:00
Ryan Leckey
ef2527ff3e
feat(mssql): fix a few bugs and implement Connection::describe
2020-06-07 02:00:31 -07:00
Ryan Leckey
2a272bdd59
feat(mssql): setup type tests for MSSQL and add support for all the int types
2020-06-07 02:00:13 -07:00
Ryan Leckey
9a701313bc
feat(mssql): implement enough to get simple queries working
...
Co-authored-by: Daniel Akhterov <akhterovd@gmail.com>
2020-06-07 02:00:12 -07:00
Austin Bonander
80b4e2fca6
fix(macros): reintroduce and fix macro tests for MySQL
2020-06-05 21:02:24 -07:00
Austin Bonander
bddb2e560f
fix(macros): fix macros for Postgres
2020-06-05 20:28:21 -07:00
Ryan Leckey
a3053119fa
fix: expose runtime-actix in sqlx/Cargo.toml
2020-06-01 05:34:52 -07:00
Ryan Leckey
51ae9f00e7
chore: bump version to 0.4.0-pre
2020-05-30 23:15:52 -07:00
Ryan Leckey
e5b6047009
feat: introduce docker-compose based testing for running locally against many database combinations
2020-05-30 17:51:55 -07:00
Ryan Leckey
88532ffc28
refactor: clean up warnings
2020-05-30 17:51:49 -07:00
Ryan Leckey
a233fbfdb7
feat(rt): introduce sqlx-rt to centralize supported runtimes
2020-05-30 16:07:02 -07:00
Austin Bonander
7dae3dbf57
rename cargo-sqlx -> sqlx-cli
...
edit README
2020-05-30 16:02:37 -07:00
Austin Bonander
6913695588
add support for building in "decoupled" mode
2020-05-30 16:02:37 -07:00
Ryan Leckey
cbccd68963
chore: prepare v0.3.5
2020-05-06 03:30:35 -07:00
Samani G. Gikandi
7038dd8ab2
Refactors realworld example with multi DB support
...
**General**
* Moves `examples/postgres/realworld` to `examples/realworld`
* The app is now architected to support multiple DBs
* Adds feature flags for `sqlite` and `postgres` to allow user to choose
which backend to use
*NOTE* Currently it is not possible to compile with `postgres` and `sqlite`
enabled as we are using the `query!` and `query_as!` macros and they
seem to get unhappy.
* Adds CLI flags for picking the DB backend to use at runtime
* Adds schema file and implementation for SQLite for `/api/user` routes
* Adds stub routes and trait for articles and Articles entity
**Changes**
* We now use i32 instead of i64 as the user_id to get around some quirks
w/ the SQLite driver.
* Reimplements existing route handlers w/ an error handling shim so we can use
Try inside the biz logic
* *FIX* Adds a `user` key to the register user body to conform w/ realworld's
API specs
APIs were functionally tested using realworld's API test script
(https://github.com/gothinkster/realworld/tree/master/api#authentication )
2020-04-17 12:42:22 -07:00
Ryan Leckey
90fd35745c
Prepare v0.3.4
2020-04-10 15:56:13 -07:00
Ryan Leckey
70387214a9
Merge branch 'feature/cargo-sqlx-migrate' of git://github.com/JesperAxelsson/sqlx into JesperAxelsson-feature/cargo-sqlx-migrate
2020-04-07 14:32:10 -07:00