Loïc Carr
523f650340
feat(postgres) Add support for std::time::Duration, time::Duration & chrono::Duration
2020-06-27 17:42:46 -07:00
Loïc Carr
71cb68b2f4
feat(postgres) Create bindings for PgInterval
2020-06-27 17:36:06 -07:00
Tim Murison
72c4e040bc
Require a mutable reference to self
2020-06-23 17:03:48 -07:00
Tim Murison
cac3f193d7
Adds a method get the underlying sqlite3 pointer
2020-06-23 17:03:48 -07:00
Zachery Gyurkovitz
84e8ed0d4c
fix: bigdecimal decoding ob1 for positive weight multiples of 4
2020-06-23 13:10:03 -07:00
Ryan Leckey
f85920acaf
fix(postgres): ignore more harmless messages in execute
2020-06-21 22:09:00 -07:00
Ryan Leckey
3dc067f031
fix: downgrade num-bigint due to conflicting version in rsa
2020-06-21 04:13:45 -07:00
Ryan Leckey
ec6b4be7fb
fix: rename Decode::accepts to Type::compatible for MSSQL / bool
2020-06-21 04:13:33 -07:00
Ryan Leckey
4448c0e629
feat: add should_flush and only spawn on drop for PoolConnection if we need to flush
2020-06-21 03:55:31 -07:00
Ryan Leckey
d76002e110
postgres: ignore more messages during execution if they are deemed not relevant
2020-06-21 03:55:31 -07:00
Ryan Leckey
f8dc7284b9
chore: update dependencies
2020-06-21 03:55:31 -07:00
Ryan Leckey
e7e2f5b37a
fix: implement transparent Serialize and Deserialize for Json<_>
2020-06-21 03:55:31 -07:00
Ryan Leckey
93728a051c
fix: impl Deserialize for Json for MySQL instead of DeserializeOwned
2020-06-21 03:55:31 -07:00
Ryan Leckey
21717b47a0
fix: AsyncStream should use a zero-capacity stream to ensure we run in lock-step
2020-06-21 03:55:31 -07:00
Ryan Leckey
6cfe5ac811
refactor: tweak type name display to use TypeInfo::name
2020-06-21 03:55:31 -07:00
Ryan Leckey
aaa475cc33
refactor: move Decode::accepts to Type::compatible
2020-06-21 03:55:31 -07:00
Ryan Leckey
5ac7601fe2
docs: extend documentation on Encode/Decode
2020-06-21 03:55:31 -07:00
Ryan Leckey
11e21e201c
feat: add a name method to TypeInfo
2020-06-21 03:55:31 -07:00
Ryan Leckey
e3adb88ab5
feat: disassociate Type from Decode further and require only Decode for FromRow + Row + Value
2020-06-21 03:55:31 -07:00
Daniel Akhterov
80d545109b
feat: implement BIT
support in MSSQL
2020-06-15 22:49:33 -07:00
Bo Jeanes
956721c96c
Don't leak txns on explicit commit/rollback
...
Fixes #409
2020-06-14 20:03:50 -07:00
Ryan Leckey
e10c7c723f
refactor: remove impl of Encode::produces where it doesn't make sense
...
produces is meant as a value-dependent override, it only makes sense
currently for MSSQL or in generic contexts
2020-06-13 10:18:04 -07:00
Ryan Leckey
847e0b6b6b
fix(mysql): update usage of Digest and remove OAEP module in favor of the RSA crate
2020-06-13 08:55:24 -07:00
Ryan Leckey
c2ce35fc06
fix(postgres): update usage of Digest
2020-06-13 08:54:52 -07:00
Ryan Leckey
e2ac01e190
chore: update dependencies
2020-06-13 08:54:38 -07:00
Ryan Leckey
c9f3e1adca
feat(postgres): add support for built-in range types and allow derives to handle custom range types
...
Co-authored-by: Caio <c410.f3r@gmail.com>
2020-06-12 15:33:19 -07:00
Ryan Leckey
fedd883d91
style: rustfmt
2020-06-12 15:33:19 -07:00
Caio
d4329e98d4
refactor: prepare to support postgres ranges
...
- Remove Type bound from Encode + Decode which removes the defaults
for produces() and accepts(). This allows custom type implementations
to be more flexible.
2020-06-12 15:33:19 -07:00
Daniel Akhterov
98a0de2cfd
feat: implement Order
message type
2020-06-11 18:58:06 -07:00
Ryan Leckey
e9a562f89a
fix(mysql): handle MySQL sending more or less bytes than we expect for an integer type
2020-06-11 03:39:23 -07:00
Pirmin Kalberer
e5a7619344
Allow queries on virtual tables
2020-06-11 03:36:58 -07:00
Ryan Leckey
475ed9e1df
fix(mariadb): don't append UNSIGNED to the type of timestamp columns
2020-06-10 04:24:34 -07:00
Ryan Leckey
1dac0b5c29
fix(postgres): invert the type description logic to allow all "simple" type categories
...
closes #379
2020-06-10 04:21:09 -07:00
Ryan Leckey
e7d6e67f03
docs(pool): add some module docs to sqlx::pool
2020-06-10 01:51:14 -07:00
Ryan Leckey
ef6afb64d3
feat(pool): use Connect::Options over &str
2020-06-10 01:19:10 -07:00
Ryan Leckey
8359c01b76
fix(sqlite): set a busy timeout to handle SQLITE_BUSY
2020-06-10 01:02:41 -07:00
Ryan Leckey
a2c55b9f31
fix(mysql): tweak JSON type so it accepts BINARY in addition to CHAR (and make tests pass in MySQL 5.5)
2020-06-10 00:43:14 -07:00
Ryan Leckey
6fcb520ac9
fix(mssql): emit nvarchar(max) if len is too large
2020-06-10 00:43:14 -07:00
Ryan Leckey
72ca9036c5
fix(mssql): potential stall on re-using connection after an dropped incomplete fetch stream
2020-06-10 00:43:14 -07:00
Peter Maatman
2a5ea2f71b
mysql: always use column alias when available
...
If a query has a column alias available we should use that name instead
of the column name.
Fixes #385
2020-06-10 00:42:58 -07:00
Ryan Leckey
ec1cfc11e6
refactor(core): rename try_stream2 to try_stream (after removal of conflicting async-stream package)
2020-06-09 23:15:54 -07:00
Ryan Leckey
65057f0e05
fix(core): add missing .await
in try_stream!
2020-06-09 23:15:19 -07:00
Ryan Leckey
e1d22a1840
fix(core): async-stream crate seems to lose the stream if the stream owns the object we are streaming
...
hand-rolled a copy of the idea behind AsyncStream and things seem to work
2020-06-09 02:16:47 -07:00
Ryan Leckey
e54d030381
fix(mysql): str should produce VARCHAR not BLOB
2020-06-08 02:30:21 -07:00
Ryan Leckey
9a7401a427
chore: update dependencies
2020-06-07 16:30:21 -07:00
Ryan Leckey
f2885f84a7
fix(mssql): handle NULL values
2020-06-07 16:30:07 -07:00
Ryan Leckey
a0ccc135aa
style(mssql): rename MsSql to Mssql as MSSQL is not written MsSQL
2020-06-07 05:39:12 -07:00
Ryan Leckey
c9eef8b030
fix(postgres): failure to detect errors on postgres 9.5
2020-06-07 05:09:51 -07:00
Ryan Leckey
53c074130f
Merge remote-tracking branch 'origin/ab/macro-fixes'
2020-06-07 02:35:12 -07:00
Daniel Akhterov
c050611bac
fix: remove DatebaseError impl for stringprep::Error and panic instead
2020-06-07 02:34:41 -07:00