-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Comparing changes
Open a pull request
base repository: launchbadge/sqlx
base: main
head repository: Aandreba/sqlx
compare: main
Commits on Feb 19, 2023
-
Alex Andreba committed
Feb 19, 2023 Configuration menu - View commit details
-
Copy full SHA for ffa0d72 - Browse repository at this point
Copy the full SHA ffa0d72View commit details
Commits on Mar 31, 2023
-
PgHasArrayType for transparent types fix. (#2086)
Problem: PgHasArrayType was checking the application's postgres feature Solution: only check the library's postgres feature Co-authored-by: Daniel Tashjian <daniel@ecomedes.com>
Configuration menu - View commit details
-
Copy full SHA for c162d24 - Browse repository at this point
Copy the full SHA c162d24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09c0ad0 - Browse repository at this point
Copy the full SHA 09c0ad0View commit details -
Fix sqlite update return and order by type inference (#1960)
* add failing test cases for update/delete return into * fix regression in null tracking by improving tracking of cursor empty/full state * add failing test case for order by column types * Add support for SorterOpen,SorterInsert,SorterData * add failing test case for unions * fix range copy/move implementation * fix wrong copy/move range * remove calls to dbg!
Configuration menu - View commit details
-
Copy full SHA for b2753dd - Browse repository at this point
Copy the full SHA b2753ddView commit details -
Fix compile time verification performance regression for sqlite (#1946)
* add instruction, register, and cursor state memorization * fix: fixed formating
Configuration menu - View commit details
-
Copy full SHA for c4f57a5 - Browse repository at this point
Copy the full SHA c4f57a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1b80e0 - Browse repository at this point
Copy the full SHA a1b80e0View commit details -
feat: Add set_connect_options method to Pool (#2088)
* feat: Add set_connect_options method to Pool This allows external updates of the ConnectionOptions used when a new connection needs to be opened for the pool. The primary use case is to support dynamically updated (read: rotated) credentials used by systems like AWS RDS. * Use Arc wrapper for ConnectOptions to reduce lock contention * sqlite fix * Use direct assignment instead of mem::swap Co-authored-by: Austin Bonander <austin.bonander@gmail.com> Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a0e1f4a - Browse repository at this point
Copy the full SHA a0e1f4aView commit details -
Sqlite EXPLAIN type inference improvements (#1984)
* AggValue and ROW_NUMBER() * Some more functions * cargo fmt
Configuration menu - View commit details
-
Copy full SHA for e021663 - Browse repository at this point
Copy the full SHA e021663View commit details -
avoid improper path merger if cursor backing register, or cursor empt…
…iness is different (#2120)
Configuration menu - View commit details
-
Copy full SHA for 243e15e - Browse repository at this point
Copy the full SHA 243e15eView commit details -
Break drivers out into separate crates, clean up some technical debt (#…
…2039) * WIP rt refactors * refactor: break drivers out into separate crates also cleans up significant technical debt
Configuration menu - View commit details
-
Copy full SHA for 5c19db5 - Browse repository at this point
Copy the full SHA 5c19db5View commit details -
* add failing test for nested orderby * log query paths which were abandoned due to invalid state or looping. Allow instructions to be executed a small number of times to fix nested order by query * add failing testcase using nested orderby * fix handling of sequence/offset and rewind * fix handling when sqlite nests records inside of records * add test of temporary table handling * WIP add test failure for temp table access * fix support for temp tables * add tests for sqlite datetime functions * add basic date and time function support * handle gosub opcode correctly * add group by test * fix group by handling * add additional passing group by test * add test case for simple limit query * fix IfPos & If touching wrong branches state, fix IfPos using wrong branch criteria * add test for large offsets * add short-circuit for possible query offset loops * add groupby query that is predicted incorrectly * fix handling of integer cast failures * add tests for single-row aggregate results * fix handling of null-based branching * add test for coercion of text by sum * fix calculation of sum value coercion * add failing test for recursive with query * add logic for delete operation to fix queries grouping by columns from a recursive query
Configuration menu - View commit details
-
Copy full SHA for f99f7c2 - Browse repository at this point
Copy the full SHA f99f7c2View commit details -
Expose PoolOptions for reading (#2113)
This allows reading back PoolOptions that have already been set.
Configuration menu - View commit details
-
Copy full SHA for 00c1d2a - Browse repository at this point
Copy the full SHA 00c1d2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for dbec3da - Browse repository at this point
Copy the full SHA dbec3daView commit details -
feat: better database errors (#2109)
* feat(core): create error kind enum * feat(core): add error kind for postgres * feat(core): add error kind for sqlite * feat(core): add error kind for mysql * test(postgres): add error tests * test(sqlite): add error tests * test(mysql): add error tests * fix(tests): fix tests rebasing * refac(errors): add `ErrorKind::Other` variant
Configuration menu - View commit details
-
Copy full SHA for 91a5110 - Browse repository at this point
Copy the full SHA 91a5110View commit details -
fix: use owned Builder pattern for ConnectOptions (#2132)
* CHANGELOG: mention that users should upgrade CLI * fix(sqlx-core): use owned builder pattern for ConnectOptions --------- Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 881063f - Browse repository at this point
Copy the full SHA 881063fView commit details -
Initial work to switch to
tracing
(#2185)* Add tracing dep * Switch over basic events * Switch over dynamically enabled events * Fix missing SocketAddr formatting * More format fixing * refactor: Apply tracing changes to new crate structure
Configuration menu - View commit details
-
Copy full SHA for 0958a24 - Browse repository at this point
Copy the full SHA 0958a24View commit details -
fix: ensures recover from fail with PgCopyIn (#2179)
* CHANGELOG: mention that users should upgrade CLI * fix: ensures recover from fail with PgCopyIn --------- Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7f18015 - Browse repository at this point
Copy the full SHA 7f18015View commit details -
Start testing on Postgres 15 and drop Postgres 10 (#2193)
* CHANGELOG: mention that users should upgrade CLI * Drop postgres 10 start testing postgres 15 --------- Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 237a082 - Browse repository at this point
Copy the full SHA 237a082View commit details -
Added regexp support in sqlite (#2189)
* CHANGELOG: mention that users should upgrade CLI * Added regexp support in sqlite * Added a with_regexp function to sqliteconnectoptions * Fixed tests * Undo CHANGELOG.md change --------- Co-authored-by: Austin Bonander <austin.bonander@gmail.com> Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
Configuration menu - View commit details
-
Copy full SHA for 503a36e - Browse repository at this point
Copy the full SHA 503a36eView commit details -
Set whoami default-features to false (#2319)
* Fixed typo. (#2156) * Set whoami default-features to false Otherwise, whoami pulls in web-sys, wasm-bindgen and a BUNCH of additional dependencies. This is really unnecessary, and if someone has an actual use case where they are attempting to connect to postgres from a browser, well ... they've probably already been pwned by now. If it is deemed necessary, then add an additional activation feature for that specific slew of deps. --------- Co-authored-by: Chris Foster <cdbfoster@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 626eca2 - Browse repository at this point
Copy the full SHA 626eca2View commit details -
Allow using complex types in
try_from
when derivingFromRow
(#2115)* Use `syn::Type` instead of `syn::Ident` to parse the value of `#[sqlx(try_from = "...")]` * Fix broken test after rebase
Configuration menu - View commit details
-
Copy full SHA for ba91478 - Browse repository at this point
Copy the full SHA ba91478View commit details -
Postgres OID resolution query does not take into account current `sea…
…rch_path` (#2133) * Fix oid resolution query * Address review comments
Configuration menu - View commit details
-
Copy full SHA for bfce825 - Browse repository at this point
Copy the full SHA bfce825View commit details -
[SQLite] Add option to execute
PRAGMA optimize;
on close of a conne……ction (#2116) * CHANGELOG: mention that users should upgrade CLI * [SQLite] Add option to execute `PRAGMA optimize;` on close of a connection * Update sqlx-sqlite/src/options/mod.rs * Update sqlx-sqlite/src/options/mod.rs * Update sqlx-sqlite/src/options/mod.rs --------- Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f064c3c - Browse repository at this point
Copy the full SHA f064c3cView commit details -
Add client SSL authentication using key-file for Postgres, MySQL and …
…MariaDB (#1850) * use native-tls API * Add client cert and key to MySQL connector * Add client ssl tests for PostgreSQL * Add client ssl tests for MariaDB and MySQL * Adapt GA tests * Fix RUSTFLAGS to run all tests * Remove containers to free the DB port before running SSL auth tests * Fix CI bad naming * Use docker-compose down to remove also the network * Fix main rebase * Stop trying to stop service using docker-compose, simply use docker cmd * Fix RUSTFLAGS for Postgres * Name the Docker images for MariaDB and MySQL so we can stop them using their name * Add the exception for mysql 5.7 not supporting compatible TLS version with RusTLS * Rebase fixes * Set correctly tls struct (fix merge) * Handle Elliptic Curve variant for private key * Fix tests suite * Fix features in CI * Add tests for Postgres 15 + rebase * Python tests: fix exception for MySQL 5.7 + remove unneeded for loops * CI: run SSL tests only when building with TLS support --------- Co-authored-by: Barry Simons <linuxuser586@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 00a7da0 - Browse repository at this point
Copy the full SHA 00a7da0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8016ce - Browse repository at this point
Copy the full SHA a8016ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for f77f28d - Browse repository at this point
Copy the full SHA f77f28dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a660585 - Browse repository at this point
Copy the full SHA a660585View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7bda7a - Browse repository at this point
Copy the full SHA d7bda7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc4fae7 - Browse repository at this point
Copy the full SHA cc4fae7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e00905d - Browse repository at this point
Copy the full SHA e00905dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a36be6 - Browse repository at this point
Copy the full SHA 8a36be6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90defd3 - Browse repository at this point
Copy the full SHA 90defd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 019a879 - Browse repository at this point
Copy the full SHA 019a879View commit details -
feat(prepare): move to one-file-per-query for offline mode
Co-authored-by: Jonas Platte <jonas@lumeo.com>
Configuration menu - View commit details
-
Copy full SHA for 0eeca2f - Browse repository at this point
Copy the full SHA 0eeca2fView commit details -
chore: test macros' offline mode in CI
Co-authored-by: Austin Bonander <austin@launchbadge.com>
Configuration menu - View commit details
-
Copy full SHA for 16e6d5b - Browse repository at this point
Copy the full SHA 16e6d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f6fbd55 - Browse repository at this point
Copy the full SHA f6fbd55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0138687 - Browse repository at this point
Copy the full SHA 0138687View commit details -
chore: Use tracing's fields to get structured logs
This also enables on services that can query this data to get useful metrics
Configuration menu - View commit details
-
Copy full SHA for eeac7d8 - Browse repository at this point
Copy the full SHA eeac7d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bb9064 - Browse repository at this point
Copy the full SHA 2bb9064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dc014c - Browse repository at this point
Copy the full SHA 6dc014cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 225d0c2 - Browse repository at this point
Copy the full SHA 225d0c2View commit details -
Don't run EXPLAIN nullability analysis on Materialize
Materialize [0] is a PostgreSQL-like database that, similar to CockroachDB, does not support PostgreSQL's `EXPLAIN` output. Extend the fix from PR #1248 to Materialize, too, so that sqlx can still be used with Materialize. See #1248. [0]: https://materialize.com
Configuration menu - View commit details
-
Copy full SHA for 10a964b - Browse repository at this point
Copy the full SHA 10a964bView commit details -
feat: support calling PostgreSQL procedures with the macros
Fixes #1449 (I think). I verified that the code fixes the new test. I used INOUT in setup.sql because older versions of Postgres don't support OUT parameters.
Configuration menu - View commit details
-
Copy full SHA for 970efb9 - Browse repository at this point
Copy the full SHA 970efb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb6126e - Browse repository at this point
Copy the full SHA cb6126eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30127eb - Browse repository at this point
Copy the full SHA 30127ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for e83c596 - Browse repository at this point
Copy the full SHA e83c596View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4087ba - Browse repository at this point
Copy the full SHA d4087baView commit details -
Configuration menu - View commit details
-
Copy full SHA for caccbc1 - Browse repository at this point
Copy the full SHA caccbc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d826bf3 - Browse repository at this point
Copy the full SHA d826bf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30a1d36 - Browse repository at this point
Copy the full SHA 30a1d36View commit details
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.