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
434bfaa76a
feat(mssql): handle stream flushing
2020-06-07 02:00:13 -07:00
Ryan Leckey
c64122c03f
feat(mssql): implement parameterized queries
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
Ryan Leckey
8c42d7fcc0
chore: setup MSSQL and DB2 in docker-compose
2020-06-07 02:00:12 -07:00
Austin Bonander
e3dbd58bf2
PgConnection: use more obvious/safer query for ping()
2020-06-05 20:13:20 -07:00
Ryan Leckey
0c80aa4f2c
test: add a test to prove #363 works
2020-06-01 16:58:48 -07:00
Ryan Leckey
884b523d43
fix: tests/x.py doesn't need to worry about user permissions on windows
2020-06-01 05:23:31 -07:00
Ryan Leckey
e08f05b879
feat: re-introduce error downcasting
2020-05-30 17:51:56 -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
Blaine Bublitz
28c639fd84
Seems like postgres needs tests like this
2020-05-20 20:33:03 -07:00
Blaine Bublitz
03ba5ca434
I think postgres needs this
2020-05-20 20:33:03 -07:00
Blaine Bublitz
2ffbe2f06e
More copy-paste errors
2020-05-20 20:33:03 -07:00
Blaine Bublitz
84f4ab5799
Attempt to fix copy-paste errors
2020-05-20 20:33:03 -07:00
Blaine Bublitz
e5b6754ac6
fix failures
2020-05-20 20:33:03 -07:00
Blaine Bublitz
7283e690ff
rustfmt
2020-05-20 20:33:03 -07:00
Blaine Bublitz
168ce9bed0
Attempt to add integration tests
2020-05-20 20:33:03 -07:00
Austin Bonander
c285e28670
fix and test handling of 0 for BigDecimal in Postgres/MySQL
...
closes #283
2020-04-28 11:54:41 -07:00
Austin Bonander
a7d039931c
fix UI tests
...
looks like the `.stderr` file for a SQLite UI test never got added, and notes on errors in other tests changed slightly
2020-04-27 19:43:54 -07:00
Peter Maatman
30d13174ea
mysql: Add JSON support
2020-04-19 15:58:47 -07:00
Austin Bonander
f00b7b48e1
add regression test for Map::fetch()
being Unpin
2020-04-13 14:17:37 -07:00
xiaopengli89
d50405743b
add integration tests mysql-types.rs/decimal
2020-04-10 15:35:58 -07:00
Ryan Leckey
52408f3cbf
test(postgres): make test_enum_type more resilient
2020-04-10 14:22:18 -07:00
Ryan Leckey
d360f682f8
fix(postgres): guarantee the type name on a PgTypeInfo to always be set
...
fixes #241
2020-04-10 13:37:08 -07:00
Ryan Leckey
b3fd720aad
test(sqlite): add failing test to illustrate #231
2020-04-08 01:28:30 -07:00
sid
012c186069
support rename attribute in FromRow macro
2020-04-07 14:49:34 -07:00
Ryan Leckey
4dc634f8b5
postgres: add a test to prove Type derive works for structs and fix the issue with it
...
fixes #219
2020-04-01 16:40:04 -07:00
sid
40f11ebb77
Process keyword fields correctly in FromRow macro
...
This PR fixes the the incorrect handling of keywords fields of a struct in the FromRow macro.
Currently a struct with a field like 'r#type' will try to read values from a column with the exact same name with r# prefix. With this change this field will now map to a database column with the correct name 'type' without the r# prefix.
2020-03-30 19:30:50 +05:30
Ryan Leckey
5fa11da353
use sqlx_test over connect fn in test
2020-03-29 14:40:02 -07:00
Ryan Leckey
c59d7aeebe
macro tests: update for null inferrence
2020-03-29 01:33:12 -07:00
Austin Bonander
fb50968ec7
update schema in SQLite test DB
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
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
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
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
Austin Bonander
3436ede2d3
fix some remaining fallout from Result
refactor
2020-03-25 22:33:03 -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
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
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
63aa3e8f0f
add support for VARCHAR and BPCHAR in postgres
2020-03-24 12:49:52 -07:00
Ryan Leckey
f83e0296cc
don't use now private module runtime in tests
2020-03-24 03:13:12 -07:00