Ryan Leckey
f6655c827a
chore: forward unknown args in x.py
2021-02-26 00:20:50 -08:00
Ryan Leckey
c9252570a9
feat(mysql): impl Type for u8, u16, u32, and u64
2021-02-26 00:20:38 -08:00
Ryan Leckey
730439fcf7
test(mysql): add some basic unit tests for types to experiment
2021-02-26 00:20:01 -08:00
Ryan Leckey
6b5f37dfb1
feat(core): add sqlx::RawValue
2021-02-26 00:19:42 -08:00
Ryan Leckey
163d5cb1b3
feat: add bind_unchecked to Query and QueryAs
2021-02-26 00:19:30 -08:00
Ryan Leckey
d079c021a8
refactor(mysql): simplify MySqlRow impl
2021-02-26 00:19:13 -08:00
Ryan Leckey
0ae59643de
fix(mysql): Argument::type_id no longer has a parameter
2021-02-26 00:18:41 -08:00
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
59eb42610d
refactor(core): store parameter index or name in Argument for error messages
2021-02-26 00:17:49 -08:00
Ryan Leckey
1748406222
fix(mysql): set HasRawValue::Database
2021-02-26 00:05:33 -08:00
Ryan Leckey
d92ae2500d
fix(mysql): prefer column alias over name if non-empty
2021-02-26 00:05:17 -08:00
Ryan Leckey
2c66bcf19f
feat(core): expand and document Row
2021-02-26 00:04:55 -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
2934a18af4
fix(core): bind non-object-safe pieces of Type to Argument for later use
...
- allows for TypeDecode and TypeEncode to be simple Type + X aliases
2021-02-26 00:03:40 -08:00
Ryan Leckey
a92925a045
fix(core): require that RawValue::Database == other database associated types
2021-02-26 00:02:14 -08:00
Ryan Leckey
149313fe00
docs(mysql): expand docs for mysql type mapping
2021-02-23 16:11:40 -08:00
Ryan Leckey
b6b24cd927
feat(mysql): impl Type for bool
2021-02-23 16:11:28 -08:00
Ryan Leckey
d8131d3b3d
feat(mysql): impl Type for Bytes, ByteString
2021-02-23 16:11:01 -08:00
Ryan Leckey
20f52997dd
chore: allow --open for ./x.py -t doc
2021-02-23 16:10:45 -08:00
Ryan Leckey
16f961584d
fix(mysql): handle reading binary-encoded string data
2021-02-23 12:14:23 -08:00
Ryan Leckey
6622f45b3a
feat(core): impl Query, QueryAs, Executor for the blocking runtime
2021-02-23 12:14:03 -08:00
Ryan Leckey
1107241170
feat(core): add query_as, FromRow
2021-02-23 02:28:09 -08:00
Ryan Leckey
0708b3a873
feat(mysql): detect BOOLEAN, SET, and ENUM with MySqlTypeInfo
2021-02-23 02:06:24 -08:00
Ryan Leckey
0756ef0e59
refactor(mysql): remove binary type IDs
2021-02-23 01:55:09 -08:00
Ryan Leckey
22960f1610
feat(mysql): add support for &str and &[u8]
2021-02-23 01:51:21 -08:00
Ryan Leckey
d2da565d0b
refactor: remove unsafe for utf8 conversions within protocol
2021-02-22 23:41:22 -08:00
Ryan Leckey
3df0743bdf
fix(core): use cmp::max instead of infix max
2021-02-22 23:02:44 -08:00
Ryan Leckey
eddd873f4d
feat(core): add Row::get, Row::get_raw
2021-02-22 21:35:51 -08:00
Ryan Leckey
21f3a83c5f
feat(core): add Row::column, Row::try_column (from 0.5)
2021-02-22 21:32:52 -08:00
Ryan Leckey
d8e4030cb8
refactor: rename ordinal to index
2021-02-22 21:29:05 -08:00
Ryan Leckey
9a31baa15a
feat(mysql): expand MySqlRow
2021-02-22 21:22:30 -08:00
Ryan Leckey
3470195839
feat(core): add ColumnIndex
2021-02-22 21:22:04 -08:00
Ryan Leckey
6099468c7d
feat(mysql): expand MySqlDatabaseError
2021-02-22 19:21:28 -08:00
Ryan Leckey
2b99b1aeaf
feat(core): expand variants and documentation of sqlx::Error
2021-02-22 18:57:06 -08:00
Ryan Leckey
301665360c
wip: plan out transaction options, to mirror connect options
2021-02-19 21:41:42 -08:00
Ryan Leckey
1227b934c8
style(mysql): clippy
2021-02-19 00:07:18 -08:00
Ryan Leckey
2bc2434fa0
fix(mysql): Executor for blocking runtime
2021-02-19 00:00:43 -08:00
Ryan Leckey
9413146bb7
style(core): clippy
2021-02-18 23:59:11 -08:00
Ryan Leckey
3078957a66
feat(core): implement Executor for blocking runtimes
2021-02-18 23:58:59 -08:00
Ryan Leckey
562ea39ee3
fix: resolve new future-incompatible lint, trailing ; on macros
2021-02-18 23:50:36 -08:00
Ryan Leckey
51cf310b61
test(mysql): fix usage of connect options
2021-02-18 23:48:53 -08:00
Ryan Leckey
23b8d93023
chore: update lockfile
2021-02-18 23:46:07 -08:00
Ryan Leckey
943f1e441a
style: remove unused imports
2021-02-18 23:46:07 -08:00
Ryan Leckey
1f28e7b0b3
feat(core): use a blanket impl for TypeEncode
2021-02-18 23:46:07 -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
60cf88c38f
feat(mysql): implement the prepare phase for statements
2021-02-18 23:46:07 -08:00
Ryan Leckey
080fa46126
wip(mysql): add MySqlOutput, unsure on exact API
2021-02-18 23:46:07 -08:00
Ryan Leckey
924340c5b4
feat(mysql): handle conversions from other integer types in u8
2021-02-18 23:46:07 -08:00
Ryan Leckey
9d448c8d8e
feat(mysql): expand MySqlRow to handle the binary format from prepared queries
2021-02-18 23:46:07 -08:00
Ryan Leckey
f348a8f2ac
feat(mysql): expand MySqlTypeInfo, MySqlTypeId
2021-02-18 23:46:06 -08:00