223 Commits

Author SHA1 Message Date
Austin Bonander
a2eda2de24
WIP [next]: implement generalized query placeholders
Signed-off-by: Austin Bonander <austin@launchbadge.com>
2021-07-16 16:39:01 -07:00
Ryan Leckey
1cac2864ec test: prove mysql driver is cancellation safe 2021-06-11 04:36:31 -07:00
Ryan Leckey
3caa5e91f7 fix(mysql): remove a few unused imports and add dyn usage 2021-06-10 16:25:18 -07:00
Ryan Leckey
1dc106f053 test: add mariadb instances for test 2021-06-10 16:17:07 -07:00
Ryan Leckey
c9e7a27441 test: setup basic mysql integration test 2021-06-10 16:13:59 -07:00
Ryan Leckey
f563260886 test(mysql): use once-cell over conquer-once to avoid weird panic 2021-06-10 15:05:00 -07:00
Ryan Leckey
2e9ba72b02 fix(mysql, postgres): update XDatabaseError for core changes to support downcast 2021-06-10 15:04:40 -07:00
davidj-lb
ea50e6dccb
feat(core): Added error downcasting in the style of the master branch (#1252) 2021-05-27 15:55:42 -07:00
davidj-lb
9060d21ba1
feat(sqlx): Added bind_named to Query struct (#1234) 2021-05-21 16:16:04 -07:00
David Johnson
a7452d76f3 feat(core): Fixed some typos, renamed the id() function to position(), and used .left() and .right() on the Either (all in Argument) 2021-05-20 12:51:46 -07:00
David Johnson
e2bcfb8d26 feat(core): Added name() and id() functions to Argument that both return optional and Arguments::named() to get an iterator over named arguments 2021-05-20 12:51:46 -07:00
Ryan Leckey
e7664d8d19 feat(postgres): add support for SQL NULL to Option<_> and sqlx::Null 2021-04-16 16:10:02 -07:00
Ryan Leckey
23fb65dc36 refactor(postgres): use a similar styling to mysql when adding the severity and code to error message 2021-04-16 15:52:37 -07:00
Ryan Leckey
d04fcbb2a7 feat(postgres): add support for i128 and u128 2021-04-16 12:01:22 -07:00
Ryan Leckey
3d575495e7 style: rustfmt 2021-04-16 11:49:47 -07:00
Ryan Leckey
4c0896bc14 test(mysql): adjust asserts for slight error format change 2021-04-16 11:49:35 -07:00
Ryan Leckey
2ff36167b7 fix(postgres): return IsNull from Encode::encode 2021-04-16 11:49:20 -07:00
Ryan Leckey
76b31faf4c feat(postgres): catch and return PgDatabaseError for ErrorResponse 2021-04-16 11:44:14 -07:00
Ryan Leckey
949e8cd46b feat(postgres): add PgNotice protocol type to handle notice response and error response 2021-04-16 11:43:28 -07:00
Ryan Leckey
f25c724705 fix(mysql): serialize a NULL when encode returns IsNull::Yes 2021-04-16 00:44:00 -07:00
Ryan Leckey
8dcaa039c8 feat(mysql): disable parameter type check on older MySQL, add support for NULL 2021-04-16 00:39:21 -07:00
Ryan Leckey
d03a294555 fix(mysql): command guard should only drop the command if the future wasn't dropped; and, support MySQL <= 5.5 2021-04-15 22:52:07 -07:00
Ryan Leckey
6166ec7b8f refactor(mysql): raise MySqlClientError for general client-side errors 2021-04-15 21:54:05 -07:00
Ryan Leckey
0267fe0482 refactor(postgres): review connection executor and tweak raw_query 2021-04-09 16:51:20 -07:00
Ryan Leckey
fd95c68898 docs(postgres): add some notes for what flush is doing 2021-04-09 16:17:50 -07:00
Ryan Leckey
7395543e22 fix: mark blocking invocations of flush! as @blocking 2021-04-09 16:10:42 -07:00
Ryan Leckey
ce44599db5 docs: add notes for x.py usage to CONTRIBUTING.md 2021-04-09 16:10:32 -07:00
Ryan Leckey
332a74ca2e chore(postgres): remove old todo comments 2021-03-27 17:15:13 -07:00
Ryan Leckey
1030e52368 chore: add chinook/postgres.sql 2021-03-27 17:12:17 -07:00
Ryan Leckey
949b644503 style: rustfmt 2021-03-27 17:12:03 -07:00
Ryan Leckey
5c9ab18a74 feat(postgres): impl prepared query support and integer types 2021-03-27 17:11:57 -07:00
Ryan Leckey
4fd8b203fd chore: add --exact (-e) to x.py to pick a single target exactly 2021-03-27 15:04:24 -07:00
Ryan Leckey
ee8f5b7c14 chore(mysql): make Row::is_null public 2021-03-27 15:04:09 -07:00
Ryan Leckey
858212f755 feat(postgres): impl execute, fetch_all, fetch_optional and related utilities 2021-03-27 15:03:42 -07:00
Ryan Leckey
f12035c8d4 refactor: settle on identifiers for lifetimes and type parameters in Executor 2021-03-25 16:17:07 -07:00
Ryan Leckey
2b81bbe330 docs: add an initial CONTRIBUTING.md 2021-03-25 16:00:29 -07:00
Ryan Leckey
90552a0c27 chore: make x.py easier to use, make TARGET a positional arg, check examples 2021-03-25 11:37:02 -07:00
Ryan Leckey
a48f4f6753 refactor: remove sqlx wrappers around DbConnection and DbConnectOptions
- traits are needed for some operations again
 - this should be circled back to once we can do impl !Trait
2021-03-25 11:36:47 -07:00
Ryan Leckey
7acda184a8 Revert "refactor(mysql): remove unused close! macro"
This reverts commit 424d4b7aa10bf15dbcd8128c2a186781d9c36608.
2021-03-25 09:41:54 -07:00
Ryan Leckey
a5cdb9ffd4 chore: make x.py take the target as its first positional argument 2021-03-25 09:39:05 -07:00
Jonas Platte
de0f31cc0b Enforce consistent imports granularity through rustfmt 2021-03-22 12:14:06 -07:00
Jonas Platte
33524ebdad Fix doc comments for postgres types refering to MySQL 2021-03-22 12:14:06 -07:00
Ryan Leckey
cc2f2c1f72
style: rustfmt 2021-03-20 09:42:56 -07:00
Ryan Leckey
d4aa3dfa5e
feat(postgres): add more frontend protocol messages 2021-03-20 08:28:15 -07:00
Ryan Leckey
b2d9c43048
feat(postgres): add more backend protocol messages 2021-03-20 01:28:56 -07:00
Ryan Leckey
db1896444d
feat(postgres): add support for clear and md5 passwords 2021-03-20 00:50:27 -07:00
Ryan Leckey
9cc80af5e4
feat(examples): add initial postgres+async-std quickstart 2021-03-20 00:16:52 -07:00
Ryan Leckey
dbf13844d9
feat(sqlx): add sqlx-postgres to sqlx 2021-03-20 00:16:35 -07:00
Ryan Leckey
1eb1cd3ea9
feat(postgres): stub start-up flow 2021-03-20 00:16:20 -07:00
Ryan Leckey
424d4b7aa1
refactor(mysql): remove unused close! macro 2021-03-20 00:14:55 -07:00