Austin Bonander
21041ff55e
implement cargo sqlx prepare
...
also organize code more clearly in `cargo-sqlx`
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
Josh Holmer
8b78680d9c
Add snake_case rename support for Type macro
...
I encountered a use case while converting a project
from Diesel to sqlx, where I had a custom Postgres enum
which included a snake case field name:
```rust
pub enum JobStatus {
NotRun,
Finished,
Failed,
}
```
Which translates to:
```sql
CREATE TYPE job_status AS ENUM ('not_run', 'finished', 'failed');
```
This is likely to be a semi-common use case,
so this commit adds snake case support for enums
via the `#[sqlx(rename_all = "snake_case")]` attribute.
2020-04-17 03:59:19 -04:00
Ryan Leckey
90fd35745c
Prepare v0.3.4
2020-04-10 15:56:13 -07:00
Ryan Leckey
e7ace2adc7
Prepare v0.3.3
2020-04-01 18:24:08 -07:00
Ryan Leckey
a9fc05378e
Prepare v0.3.2
2020-03-31 03:02:01 -07:00
Ryan Leckey
a84e1f6626
Prepare v0.3.1
2020-03-30 18:53:03 -07:00
Ryan Leckey
fc3d06bf9b
Prepare v0.3.0
2020-03-29 16:27:41 -07:00
Oliver Bøving
bcb3959379
Add array of uuid, chrono, time, bigdecimal, and ipnetwork as well as JsonValue to query macro ( #154 )
...
* Add array of uuid, chrono, time, bigdecimal, and ipnetwork to query macro
* Comment out tests for arrays of BigDecimal
Currently arrays of BigDecimal doesn't in query macros compile.
As all of the other types work just fine, BigDecimal is simply omitted.
* Add serde_json::Value to query macros
This also adds serde_json as an optional dependency to sqlx_macros along
side a new json feature flag.
2020-03-28 17:28:47 -07:00
Ryan Leckey
a90ff10a27
Prepare v0.3.0-alpha.2
2020-03-25 04:58:22 -07:00
Ryan Leckey
43a72657f9
add a hack so bigdecimal can be the package name and the feature name
2020-03-24 02:56:14 -07:00
Ryan Leckey
4a98a51a19
Merge remote-tracking branch 'utter-step/time-rs'
2020-03-21 01:25:00 -07:00
PoiScript
c9cca27e65
rename feature gate to ipnetwork
2020-03-20 10:19:14 +08:00
Austin Bonander
94c40b3eb7
Postgres: implement numeric and BigDecimal support
2020-03-18 19:06:14 -07:00
Ryan Leckey
d1af2fe1b0
Prepare v0.3.0-alpha.1
2020-03-18 16:58:42 -07:00
Ryan Leckey
5d042e35b1
sqlite: stub
2020-03-14 17:43:44 -07:00
Ryan Leckey
10d2b45d9c
update dependencies and clean up some more unused imports
2020-03-11 01:46:06 -07:00
Ryan Leckey
05bc3ba987
Prepare v0.2.6
2020-03-10 15:40:33 -07:00
Vlad Stepanov
084add9cdb
#115 : implement time-rs support
2020-02-29 22:38:48 +03:00
Ryan Leckey
f8e112f4d9
Prepare v0.2.5
2020-02-01 00:49:27 -08:00
Ryan Leckey
ac9aeb2e26
Prepare v0.2.3
2020-01-18 00:47:26 -08:00
Ryan Leckey
3b91b06828
Prepare v0.2.2
2020-01-16 18:31:48 -08:00
Ryan Leckey
35c5556512
Update dependencies
2020-01-16 18:29:58 -08:00
Ryan Leckey
d46acb0e0e
default sqlx-core and sqlx-macros to runtime-async-std as well to make "cargo c" work during dev
2020-01-16 12:51:08 -08:00
Ryan Leckey
6a7e8df9ae
Add rt-threaded flag to tokio in sqlx-macros
2020-01-16 12:14:54 -08:00
Ryan Leckey
fe3225a8b8
Prepare v0.2.1
2020-01-16 01:52:47 -08:00
Ryan Leckey
1fd3976d65
macros: remove now unused once-cell dep and make lazy_static optional
2020-01-16 01:04:40 -08:00
John-John Tedro
453012c9bf
Only create tokio runtime once for block_on
2020-01-15 14:49:56 +01:00
Ryan Leckey
62e1df5ad9
Prepare v0.2.0
2020-01-15 02:20:19 -08:00
Ryan Leckey
c42e859141
Add support for tokio to sqlx-macros
2020-01-15 01:54:50 -08:00
Ryan Leckey
daf7f6c556
Be explicit with features for docs.rs
2020-01-15 01:27:07 -08:00
Austin Bonander
da5c538d22
strip out proc-macro-hack
2020-01-15 00:05:09 -08:00
Ryan Leckey
619de5aac2
Update dependencies
2020-01-11 03:30:03 -08:00
Kris
bad21b1567
Build docs for all features ( #32 )
2020-01-06 23:57:55 -08:00
Ryan Leckey
2068f05482
Update dependencies
2019-12-28 04:02:52 -08:00
Ryan Leckey
48c8d4c100
Add license to sqlx-macros Cargo.toml
2019-12-28 02:44:32 -08:00
Ryan Leckey
86ac601872
Prepare v0.1.1
2019-12-28 02:42:51 -08:00
Ryan Leckey
7b8ef0f46b
Add more authors
2019-12-28 00:36:37 -08:00
Ryan Leckey
ef98ff2828
Add repo/desc to sub crates
2019-12-28 00:25:04 -08:00
Ryan Leckey
d76b1357da
Audit MySql and Postgres protocols
2019-12-27 17:31: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
ca3fbd740a
implement support for chrono
...
fix tests
2019-12-11 19:59:41 -08:00
Ryan Leckey
f16c805f4c
Try and trim down the features a bit
2019-12-03 00:14:59 -08:00
Ryan Leckey
9558ab1c50
Remove bytes usage and update dependencies
2019-12-02 23:26:44 -08:00
Ryan Leckey
f394acdb1c
Minor cargo.toml cleanup
2019-11-22 11:52:03 +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
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