199 Commits

Author SHA1 Message Date
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
Ryan Leckey
366741fe0f
refactor(mysql): prefer handle_ over recv_ for methods that do not recv from the buffer but only handle what was received 2021-03-20 00:14:44 -07:00
Ryan Leckey
6d869bef7e
feat(core): add Error::Client and ClientError to represent a general client error, replacing Error::Protocol 2021-03-20 00:02:25 -07:00
Ryan Leckey
2b8ca88b87
style(mysql): move simple bounds to type parameter list 2021-03-17 08:17:12 -07:00
Ryan Leckey
3bccedc6a7
wip(postgres): declare PgConnection 2021-03-17 08:16:57 -07:00
Ryan Leckey
3bd6a5a356
fix: QueryResult should be Clone + Default 2021-03-07 10:35:54 -08:00
Ryan Leckey
5a5ce82946
feat(postgres): add PgConnectOptions 2021-03-07 10:28:51 -08:00
Ryan Leckey
baa63d33e1
refactor(postgres): baseline postgres driver against the now near-complete state of the mysql driver 2021-03-06 13:59:24 -08:00
Ryan Leckey
39e2658537
chore: update lockfile 2021-03-03 17:42:33 -08:00
Ryan Leckey
f49d9f3e83
refactor: simplify mocked stream testing 2021-03-03 17:42:00 -08:00
Ryan Leckey
51466f58ca
chore: switch to the blocking runtime for unit tests 2021-03-03 17:41:38 -08:00
Ryan Leckey
a5a3fb346d
fix(mysql): auth plugins have an opaque command phase rather than a specific MORE_DATA phase 2021-03-03 16:09:12 -08:00
Ryan Leckey
71f52961c9
fix(mysql): smaller integer decode from larger byte lengths 2021-03-03 16:08:51 -08:00
Ryan Leckey
4204f1dc16
feat: expose Connection::describe 2021-02-28 12:18:53 -08:00
Andrew Houts
22e11e59a0 add basic dialog authentication 2021-02-27 22:51:32 -08:00
Ryan Leckey
c9197916fb
fix(mysql): allow reading a bool from any integer type 2021-02-27 13:53:10 -08:00
Ryan Leckey
635bb3e8f1
fix(core): show argument index as starting from 0 2021-02-27 00:50:02 -08:00
Ryan Leckey
4c1d2fa679
feat(mysql): impl Type for i8, i16, i32, i64, i128, and isize 2021-02-26 00:38:27 -08:00
Ryan Leckey
01d4255137
feat(mysql): impl type for usize and u128 2021-02-26 00:30:45 -08:00
Ryan Leckey
85c11b3f2f
style: remove unused imports 2021-02-26 00:23:40 -08:00
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