Ryan Leckey
5e1743fd3f
refactor(core): do not convert encode or decode errors into sqlx::Error automatically
2021-02-26 00:18:15 -08:00
Ryan Leckey
ecb4bd0281
feat(core): add TypeNotCompatible error variants to Decode and Encode Error
2021-02-26 00:04:29 -08:00
Ryan Leckey
2b99b1aeaf
feat(core): expand variants and documentation of sqlx::Error
2021-02-22 18:57:06 -08:00
Ryan Leckey
7db850da71
feat(mysql): thread E: Execute through the executor
...
+ handle normal errors separate from unexpected errors, an unexpected
error causes the connection to close (in which case, if this was
behind a pool, the pool would not allow this connection to be
acquired again)
2021-02-18 23:46:07 -08:00
Ryan Leckey
8203410e3f
reactor(core): remove Rt param from Database trait and remove Connection associated type
...
- significantly cleans up the sqlx/ zero-prelude wrapping
2021-02-18 23:46:05 -08:00
Ryan Leckey
8925d2be0a
feat(core): add Encode and Decode
2021-02-18 23:46:04 -08:00
Ryan Leckey
b837a3ca25
feat(core): add fetch_optional and fetch_one
2021-02-18 23:46:04 -08:00
Ryan Leckey
769e8aa461
refactor: introduce io::Stream (blocking::io::Stream) to encapsulate needed IO methods
...
- rename sqlx::AsyncRuntime to sqlx::Async
- don't set default runtime in traits
2021-01-10 10:45:29 -08:00
Ryan Leckey
b0e8c1bc20
style: rustfmt
2021-01-06 23:04:17 -08:00
Ryan Leckey
2195472e3e
feat(core): add DatabaseError
2021-01-02 10:46:51 -08:00
Ryan Leckey
55a8e7ba29
wip(mysql): connection/establish, WriteExt, BufExt, and settle on AsyncRuntime
2021-01-01 12:28:48 -08:00
Ryan Leckey
44c175bb19
feat(mysql): fill out more in MySqlOptions and settle on accessors [ #659 ]
2020-12-30 16:10:04 -08:00
Ryan Leckey
93bb9cceb0
feat(mysql): add initial Connection and Database types, hookup runtimes
2020-12-28 02:18:05 -08:00
Ryan Leckey
fb4f2ca602
feat(core): add minimal Connection and ConnectOptions traits
2020-12-27 17:46:11 -08:00