Raphaël Thériault
8381e87d4a
Document migrate! (and small fixes)
2020-07-23 15:25:13 -04:00
Raphaël Thériault
e5e9665bd9
Add migrate! macro for embedded migrations
2020-07-23 14:22:50 -04:00
Austin Bonander
17e88ac1a4
perf: implement pool benchmark, make fairness an option
2020-07-03 05:59:20 -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
Austin Bonander
03773d0065
sqlx-macros: simplify query_macros module name, delete unused file
2020-05-30 16:02:37 -07:00
Austin Bonander
6b248e0d5f
get offline macros working with todos example
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
Dan B
e7c1486005
Add support for crate specific .env files
...
This change will attempt to load an .env file from CARGO_MANIFEST_DIR, if it exists.
For backwards compatibility, if the .env file does not exist, we will fall back to default dotenv behaviour.
Resolves #267
2020-04-24 15:40:20 -07:00
meh
bfc52ca2f4
Add query_unchecked and query_file_unchecked macros
2020-04-16 09:54:09 -07:00
sid
012c186069
support rename attribute in FromRow macro
2020-04-07 14:49:34 -07:00
Ryan Leckey
2f80621279
Add query_as_unchecked! and query_file_as_unchecked! to use the macro system with unchecked input and output
2020-03-27 16:37:28 -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
4fc5e65f5d
derives: update transparent
2020-03-17 03:24:08 -07:00
Tom Dohrmann
c3aeb275c2
add derive macros for weak & strong enums and structs
2020-03-16 22:58:25 -07:00
Ryan Leckey
c661fdde19
sqlite: macros: initial support for the query macros
2020-03-14 19:45:28 -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
Austin Bonander
f0c88da152
Merge pull request #71 from Freax13/master
...
add derives for Encode and Decode
2020-01-24 13:13:06 -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
2c4b7e5e3c
Add '#[allow(unused_variables)]' to suppress warnings on a feature-less compile of sqlx-macros
2020-01-16 12:09:41 -08:00
John-John Tedro
4b2267233f
Be explicit about runtime features used in static runtime
2020-01-15 15:57:54 +01:00
John-John Tedro
68937221f3
Use the threaded scheduler in the runtime
2020-01-15 15:51:03 +01:00
John-John Tedro
453012c9bf
Only create tokio runtime once for block_on
2020-01-15 14:49:56 +01:00
Ryan Leckey
c0e51d7451
Run rustfmt
2020-01-15 01:55:42 -08:00
Ryan Leckey
c42e859141
Add support for tokio to sqlx-macros
2020-01-15 01:54:50 -08:00
Ryan Leckey
96f14c0700
Merge remote-tracking branch 'origin/ab/proc-macro-unhack-sort-of' into rl-transaction-1
2020-01-15 00:29:43 -08:00
Ryan Leckey
0fdc4c4761
Remove dbg! in the macros
2020-01-15 00:26:30 -08:00
Ryan Leckey
b1a27ddac2
Add a Transaction type to simplify dealing with Transactions
2020-01-15 00:22:01 -08:00
Austin Bonander
0fdb875c20
support arbitrary numbers of bind parameters in query!() et al
2020-01-15 00:05:34 -08:00
Austin Bonander
da5c538d22
strip out proc-macro-hack
2020-01-15 00:05:09 -08:00
Ryan Leckey
4f3175c5d7
Remove all remaining check warnings
2020-01-02 23:52:47 -08:00
Ryan Leckey
4ced4058ac
Remove unused imports and a couple unused muts
2020-01-02 23:47:49 -08:00
Ryan Leckey
9b0f34b0ce
Fix a couple minor nits with Pool and run rustfmt
2019-12-27 22:47:25 -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
Austin Bonander
56875a8931
finish discussed refactors
2019-12-18 23:02:01 -08:00
Austin Bonander
8aa931356f
WIP implement statement caching for MySQL, perform discussed refactors
2019-12-18 23:02:01 -08:00
Austin Bonander
952fb0e7fc
fix sqlx-macros when no db features are set
2019-12-04 14:12:38 -08:00
Austin Bonander
acca40c88e
make query!() output anonymous records
2019-12-03 21:30:53 -08:00
Ryan Leckey
871183d23b
Minor fixes and run rustfmt
2019-12-03 00:22:02 -08:00
Ryan Leckey
2227303f20
Have Backend require Executor and de-duplicate some logic
2019-11-27 23:26:20 -08:00
Ryan Leckey
73ca673bf2
Integrate FromRow while maintaining type fallback for query!
2019-11-25 23:51:04 -08: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
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
fc07830639
implement facade crate so macros can be used from same namespace
2019-11-22 10:30:16 +00:00
Austin Bonander
020eed90c8
port to async-std, misc fixes
2019-11-21 22:10:49 +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