Commit graph

2553 commits

Author SHA1 Message Date
Simon Brüggen
a496413cb6
doc(sqlite): show how to turn options into a pool (#3508)
It took me 15 minutes of messing around and googling to find
`.connect_with()`.
2024-09-15 21:38:00 -07:00
Austin Bonander
2f5ba71c1e
chore(mysql): create test for passwordless auth (#3484) (#3505)
This isn't a solution for #3484, as that seems to be an issue with privileges on the user's side. However, in the process of figuring that out, I realized we never explicitly test password-less auth.
2024-09-14 11:51:22 -07:00
Austin Bonander
dc32f99c0f
doc(README): more prominent link for Discord 2024-09-13 11:49:56 -07:00
gridbox
daeb87bef1
Add sqlite commit and rollback hooks (#3500)
* fix: Derive clone for SqliteOperation

* feat: Add sqlite commit and rollback hooks

---------

Co-authored-by: John Smith <asserta4@gmail.com>
2024-09-12 11:57:02 -07:00
Austin Bonander
419877d734
doc(sqlite): document behavior for zoned date-time types (#3493) 2024-09-08 21:53:10 -07:00
John Vandenberg
063953fe60
chore: Update async-std v1.13 in lock file (#3491) 2024-09-08 21:52:59 -07:00
Kurt Wolf
c597a225c5
feat: expose relation_id and relation_attribution_no on PgColumn (#3492)
* expose relation_id and relation_attribution_no on PgColumn

* Update sqlx-postgres/src/message/row_description.rs

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* Update sqlx-postgres/src/column.rs

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* Update sqlx-postgres/src/message/row_description.rs

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* Update sqlx-postgres/src/column.rs

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* Update sqlx-postgres/src/message/row_description.rs

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>

* fix

---------

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2024-09-07 18:43:03 -07:00
Austin Bonander
10bec32770 doc(FAQ): add example for MSRV 2024-09-03 14:14:56 -07:00
Austin Bonander
c253e65819 chore: prepare 0.8.2 release 2024-09-03 14:14:56 -07:00
Austin Bonander
998344dcb7 doc(FAQ): refine MSRV policy 2024-09-03 14:14:56 -07:00
Austin Bonander
6cb6fce793 fix(mysql): "exclusive range pattern is experimental" error
closes #3472
2024-09-03 14:14:56 -07:00
Pierre Wehbe
fd80f998ac
fix: Use rfc3339 to decode date from text (#3411) 2024-09-02 12:34:51 -07:00
luveti
ad2936a9c4
Fix try_get example in README.md (#3474) 2024-09-01 02:14:55 -07:00
Austin Bonander
e10789d9d7
fix cancellation issues with PgListener, PgStream::recv() (#3467)
* fix(postgres): make `PgStream::recv_unchecked()` cancel-safe

* fix(postgres): make `PgListener` close the connection on-error

* fix: incorrect math in `BufferedSocket::read_buffered()`
2024-08-27 10:54:31 -07:00
Austin Bonander
20ba796b0d fix(postgres): max number of binds is 65535, not 32767 (regression) 2024-08-26 16:20:45 -07:00
kdesjard
371cf4a0cc
Pgsql cube type compile fail (#3459)
* fails to compile as size_of is not found in scope

* keep scoping consistent with other type modules

* fmt fixes

---------

Co-authored-by: kdesjard <kristian.desjardins@nrcan-rncan.gc.ca>
2024-08-26 14:15:48 -07:00
carschandler
8a17bef7d7
Remove deprecated feature-names from Cargo.toml files in examples (#3424) 2024-08-26 14:03:45 -07:00
joeydewaal
1d8eb2add4
Fix (#3395) sqlx::test macro in 0.8 (#3403)
* fix: fixture macro attribute

* remove extra new line

* add extra new line

* feat: add test for slqx::test macro

* feat: update test for sqlx::test macro

* remove old macro test

* feat: add postgres and sqlite test

* rust format

* cargo fmt

* fix fixtures execution order in test
2024-08-26 14:03:22 -07:00
joeydewaal
ebf04ff499
fix(#3445): PgHasArrayType (#3453)
* fix(#3445): PgHasArrayType

* regression test for custom no_pg_array
2024-08-24 19:25:08 -07:00
joeydewaal
018ffe7e0d
fix: non snake case warning (#3454)
* fix: non-snake-case fields warning

* cargo fmt
2024-08-24 19:24:53 -07:00
Leon Lux
f69f370f25
Clarify usage of Json/Jsonb in query macros (#3447)
* add information and example on using json in query macros

* run cargo format

* add missing bracket to docs of json

* wrap docs in hidden async function

* change no_run to ignore
2024-08-24 15:59:40 -07:00
Austin Bonander
1fb255935f
fix(CHANGELOG): add missing links for new authors 2024-08-24 04:36:48 -07:00
Austin Bonander
9c94ce891a chore: prepare release 0.8.1 2024-08-24 00:17:41 -07:00
Austin Bonander
0aa06763e5 chore(mysql): create regression test for RUSTSEC-2024-0363 2024-08-23 23:39:32 -07:00
Austin Bonander
791433afbb chore(sqlite): create regression test for RUSTSEC-2024-0363 2024-08-23 23:39:32 -07:00
Austin Bonander
b1539b60a1 chore(postgres): create regression test for RUSTSEC-2024-0363 2024-08-23 23:39:32 -07:00
Austin Bonander
9e3ece49d7 fix(postgres): use checked decrement on pending_ready_for_query_count 2024-08-23 23:39:32 -07:00
Austin Bonander
823261aefc fix(mysql): don't use an arbitrary cfg for one test 2024-08-23 23:39:32 -07:00
Austin Bonander
b5c218eb23 fix(postgres): fix missing inversion on PgNumeric::is_valid_digit() 2024-08-23 23:39:32 -07:00
Austin Bonander
394a7e86a7 fix(sqlite): fix unit and doctests 2024-08-23 23:39:32 -07:00
Austin Bonander
27c573083f fix(mysql): fix doctests 2024-08-23 23:39:32 -07:00
Austin Bonander
71f72e2620 fix(mysql): add sqlx as a dev-dependency for doctests 2024-08-23 23:39:32 -07:00
Austin Bonander
3a41288b84 fix(mysql): correct Capabilities assertions in unit tests 2024-08-23 23:39:32 -07:00
Austin Bonander
01428ff643 fix(postgres): syntax error in EXPLAIN query 2024-08-23 23:39:32 -07:00
Austin Bonander
8919e34357 fix(postgres): syntax error in nullables query 2024-08-23 23:39:32 -07:00
Austin Bonander
56d0225378 chore(postgres): include nullables query in error 2024-08-23 23:39:32 -07:00
Austin Bonander
4fb2dcbe97 fix(postgres): decode PgDatabaseError for ErrorResponse 2024-08-23 23:39:32 -07:00
Austin Bonander
77982cb407 fix(postgres): dead code StatementId::UNNAMED 2024-08-23 23:39:32 -07:00
Austin Bonander
781b659352 fix(sqlite): audit for bad casts 2024-08-23 23:39:32 -07:00
Austin Bonander
a6526a1cf7 fix: use same fix for the same cast in Migrate::apply() everywhere 2024-08-23 23:39:32 -07:00
Austin Bonander
06fc272c2b fix(sqlite): forward optional features correctly 2024-08-23 23:39:32 -07:00
Austin Bonander
2ab7565bd8 chore: configure clippy cast lints at workspace level 2024-08-23 23:39:32 -07:00
Austin Bonander
1f669ae996 fix(mysql): audit for bad casts 2024-08-23 23:39:32 -07:00
Austin Bonander
e99f0fa5b6 chore(mysql): deny bad-cast lints 2024-08-23 23:39:32 -07:00
Austin Bonander
1f3db8201d fix(mysql): fallout from ec5326e5 2024-08-23 23:39:32 -07:00
Austin Bonander
53766e4659 refactor(postgres): make better use of traits to improve protocol handling 2024-08-23 23:39:32 -07:00
Austin Bonander
9b3808b2d5 refactor: rename sqlx_core::io::{Encode, Decode} for clarity 2024-08-23 23:39:32 -07:00
Austin Bonander
01186a062a fix: audit sqlx_postgres::types::array for bad casts 2024-08-23 23:39:32 -07:00
Austin Bonander
bf13a7706b fix: audit sqlx_postgres::types::hstore for bad casts 2024-08-23 23:39:32 -07:00
Austin Bonander
2a9b85889e fix: audit sqlx_postgres::type::int for bad casts 2024-08-23 23:39:32 -07:00