Ryan Leckey
2b06386bf1
sqlite: remove two unused imports
2020-03-29 15:53:04 -07:00
Ryan Leckey
b6d87a4cc7
require Rows to be Sync
2020-03-29 15:52:49 -07:00
Ryan Leckey
5fa11da353
use sqlx_test over connect fn in test
2020-03-29 14:40:02 -07:00
Ryan Leckey
7a59e383bf
Update lockfile
2020-03-29 14:29:55 -07:00
Ryan Leckey
185f991424
Update README
2020-03-29 13:45:52 -07:00
Ryan Leckey
c59d7aeebe
macro tests: update for null inferrence
2020-03-29 01:33:12 -07:00
Ryan Leckey
3d590c5d66
macros: remove try_unwrap_optional from _unchecked codepath
2020-03-29 01:27:57 -07:00
Austin Bonander
fb50968ec7
update schema in SQLite test DB
2020-03-28 17:50:27 -07:00
Austin Bonander
604f2f308d
document nullability changes of query*!()
2020-03-28 17:50:27 -07:00
Austin Bonander
73a9155b46
fix import of from_utf8_unchecked()
2020-03-28 17:50:27 -07:00
Austin Bonander
4b51c16cce
MySQL: tweak macro test a bit
2020-03-28 17:50:27 -07:00
Austin Bonander
4ffa7f0e01
SQLite: implement column nullability checking
2020-03-28 17:50:27 -07:00
Austin Bonander
fe00c0d619
sqlite/statement.rs: lift #[allow(unsafe_code)]
to module
2020-03-28 17:50:27 -07:00
Austin Bonander
6fde5a2579
implement nullability on macro output, test postgres
2020-03-28 17:50:27 -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
0c7ab87924
Update README.md
2020-03-27 17:32:16 -07:00
Ryan Leckey
edb5ffbe77
Update README.md
2020-03-27 17:31:59 -07:00
Ryan Leckey
807fc8eacd
Update README.md
2020-03-27 17:31:43 -07:00
Ryan Leckey
0c5dfef22e
Update CHANGELOG
2020-03-27 17:13:17 -07:00
Ryan Leckey
db66163c9e
realworld: remove usge of &mut Pool as its no longer needed
2020-03-27 17:00:58 -07:00
Ryan Leckey
dddaefec41
postgres: capitalize the W in handling the WHERE field for notice
...
Fixes #120
2020-03-27 16:43:15 -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
a2d82d0ac1
Add Row::get_unchecked and Row::try_get_unchecked
2020-03-27 16:11:28 -07:00
Austin Bonander
e594a7fdca
Postgres: don't cache failed statement
2020-03-27 15:54:28 -07:00
Ryan Leckey
3103d50be8
postgres: implement PgTypeInfo::with_name
...
- remove PgTypeInfo::with_oid
- use a new PgRawBuffer type instead of Vec<u8> for encoding
2020-03-26 19:29:49 -07:00
Ryan Leckey
c6db69574b
postgres: remove PgTypeInfo::type_name()
2020-03-26 19:16:54 -07:00
Ryan Leckey
2409c2b042
postgres: indicate that we do not support CITEXT right now
2020-03-26 19:16:54 -07:00
Ryan Leckey
78f2633b26
Update dependencies
2020-03-26 19:16:54 -07:00
Ryan Leckey
4670577c61
Merge pull request #155 from launchbadge/ab/err-fix
...
un-generify `Error` and support downcasting in `DatabaseError`
2020-03-25 23:32:00 -07:00
Austin Bonander
3436ede2d3
fix some remaining fallout from Result
refactor
2020-03-25 22:33:03 -07:00
Austin Bonander
e99a863288
remove now-unused imports and reformat
2020-03-25 21:37:11 -07:00
Austin Bonander
6e3fa49ad5
add unit tests for DatabaseError
downcasting
2020-03-25 18:26:57 -07:00
Austin Bonander
673f133cab
un-generify Error
and support downcasting in DatabaseError
2020-03-25 18:13:56 -07:00
Ryan Leckey
a90ff10a27
Prepare v0.3.0-alpha.2
2020-03-25 04:58:22 -07:00
Ryan Leckey
41608c3f60
rename {DB}Error -> {DB}DatabaseError
2020-03-25 04:50:27 -07:00
Ryan Leckey
2274b69556
postgres: support "CHAR" and OID
2020-03-25 04:46:17 -07:00
Ryan Leckey
50a9120efb
mysql: use the correct integer width
2020-03-25 04:31:38 -07:00
Ryan Leckey
6049f976f9
opt out of compatible type check for null values
2020-03-25 04:25:38 -07:00
Ryan Leckey
7ab772ea80
postgres: simplify JSON support to just Json<T>
2020-03-25 04:20:35 -07:00
Ryan Leckey
8454fa4e96
fix tests and ensure all types are being tested in CI
2020-03-25 04:06:14 -07:00
Ryan Leckey
2f6bab396a
Add PartialEq for PgTypeInfo and SqliteTypeInfo
2020-03-25 03:59:29 -07:00
Ryan Leckey
ad2cf1676f
mysql: tweak type equivalence rules to try and support both rust best practices but still be compatible with the loose types of mysql
2020-03-25 03:56:39 -07:00
Ryan Leckey
50928b06b8
mysql: implement type compatible checks
2020-03-25 03:24:43 -07:00
Ryan Leckey
985d62009c
sqlite: adjust for recent changes with RawValue
2020-03-25 02:37:10 -07:00
Ryan Leckey
fbd1a0435f
postgres: support NAME and UNKNOWN types (compatible to TEXT)
2020-03-25 02:28:30 -07:00
Ryan Leckey
6ebd5c8c1e
postgres: test type compatibility for record fields
2020-03-25 02:28:10 -07:00
Ryan Leckey
129efcd367
implement a runtime type compatibility check before decoding values
2020-03-25 02:07:17 -07:00
Ryan Leckey
1dc582edd0
postgres: have PgValue remember its type OID
...
this is in preparation of doing type compatibility checks
2020-03-25 01:46:13 -07:00
Ryan Leckey
918a797581
move HasX types into the module where X is
2020-03-25 01:44:00 -07:00
Ryan Leckey
63aa3e8f0f
add support for VARCHAR and BPCHAR in postgres
2020-03-24 12:49:52 -07:00