Austin Bonander
11ecb307d7
fix: upgrade rustls to 0.23
...
should address `mariadb-verylatest` failures
2024-03-04 18:15:00 -08:00
Austin Bonander
136bb474ca
fix(migrate): improve error message when parsing version from filename
...
supercedes #2906
2024-03-04 17:09:43 -08:00
Vraj Shah
02f196b4ac
fix: link to correct version in first-migration message ( #2900 )
...
Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2024-02-18 20:20:29 -08:00
Austin Bonander
ca518b7185
feat: add raw_sql
API ( #3007 )
...
This is meant to be much easier to discover than the current approach of directly invoking `Executor` methods.
In addition, I'm improving documentation for the `query*()` functions across the board.
2024-02-18 15:38:23 -08:00
Mirek Klimos
dd900e50b6
Optimize SASL auth in sqlx-postgres ( #3050 )
...
* Optimize SASL auth in sqlx-postgres
* fix formatting
2024-02-16 16:32:31 -08:00
zoomiti
a1e4984c6c
fix: spans in sqlite tracing ( #2876 ) ( #3056 )
2024-02-15 22:27:22 -08:00
Mirek Klimos
4c057a0628
Set TCP_NODELAY option on TCP sockets ( #3055 )
2024-02-15 22:26:52 -08:00
iamjpotts
d7cbf940c3
feat(logging): Add numeric elapsed time field elapsed_secs as f64 ( #3004 )
...
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-02-12 13:51:55 -08:00
Ian Gilfillan
84d576004c
Update docs to reflect support for MariaDB data types ( #3026 )
2024-01-30 13:24:19 -08:00
iamjpotts
978bd50a57
chore: Ignore .sqlx folder created by running ci steps locally ( #3008 )
...
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-30 13:23:58 -08:00
Paweł Urbanek
0299959ca6
Add default implementation for PgMoney ( #3018 )
2024-01-30 13:23:45 -08:00
iamjpotts
235604fbce
chore(dev-deps): Upgrade env_logger from 0.9 to 0.11 ( #3009 )
...
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-25 23:30:25 -08:00
iamjpotts
3946cc82db
chore(deps): Upgrade criterion to 0.5.1 ( #3010 )
...
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-25 23:30:14 -08:00
Dorje Gilfillan
0e998ceccc
Added support to IpAddr with MySQL/MariaDB. ( #3011 )
...
* Added support for IpAddr with MySQL/MariaDB
* Added IpAddr to mysql/types documentation
2024-01-25 23:30:02 -08:00
Paweł Urbanek
af31d5059d
Add default implementation for PgInterval ( #3013 )
2024-01-25 23:29:51 -08:00
iamjpotts
5890afe95b
chore(deps): Replace unmaintained tempdir crate with tempfile ( #3006 )
...
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
2024-01-22 20:16:06 -08:00
Luiz Carvalho
a7862ae416
feat: expose connect options fields ( #2891 )
...
Exposes some of the main fields for PgConnectOptions
and MySqlConnectOptions. Exposed fields include: host,
port, socket, ssl mode, application name, and charset.
2024-01-20 18:21:34 -08:00
Lars Schumacher
29dcd44a6a
fix(mysql): Close prepared statement if persistence is disabled ( #2905 )
...
* close prepared statement if persistence or statement cache are disabled
* add tests
2024-01-20 18:20:04 -08:00
Thomas de Zeeuw
31e541ac7a
Fix handling of deferred constraints for PostgreSQL ( #2913 )
2024-01-20 02:36:06 -08:00
Ian Gilfillan
9d2c52178d
Update README to clarify MariaDB support ( #3001 )
2024-01-19 19:46:10 -08:00
Austin Bonander
fd53e95ff9
doc(FAQ): add entry explaining prepared statements ( #2997 )
2024-01-17 19:16:02 -08:00
takenoko-gohan
609fcc33e3
Update ahash to 0.8.7 ( #2996 )
2024-01-17 19:15:51 -08:00
kshramt
b4269b7c86
Support query!
for cargo-free systems ( #2927 )
...
Co-authored-by: kshramt <kshramt@example.com>
2024-01-17 19:15:22 -08:00
Dawson
2cc3e0f90b
Minor fixes ( #2955 )
...
* doc link fix
variable declaration moved for better readability
* migration version abstraction
2024-01-16 13:49:25 -08:00
Austin Bonander
cdcb2f0f2b
Merge pull request #2989 from joshtriplett/sqlx-core-no-dotenvy
...
sqlx-core: Remove dotenvy dependency
2024-01-16 13:48:25 -08:00
Josh Triplett
a5c1cd021c
sqlx-core: Remove dotenvy dependency
...
sqlx-core doesn't use dotenvy. Removing it means that users who only
depend on sqlx with sqlite and default-feature = false don't need it.
2024-01-14 21:56:54 -08:00
Austin Bonander
982c014f54
Merge pull request #2919 from shengsheng/fix_doc
...
fix duplicate "`" in FromRow "default" attribute doc comment
2024-01-05 21:17:18 -08:00
Austin Bonander
7044a92858
fix: fix new warnings that cropped up
2024-01-05 19:05:16 -08:00
Austin Bonander
4c22994605
fix(core): export net::socket::WriteBuffer
2024-01-05 18:55:34 -08:00
Austin Bonander
9b0a09387c
Update README.md
2024-01-05 18:51:27 -08:00
Austin Bonander
ea4703ea64
Merge pull request #2932 from tsing/fix-copy-in
...
fix(postgres): avoid unnecessary flush in PgCopyIn::read_from
2024-01-05 18:36:08 -08:00
Austin Bonander
2d397a56ca
Merge pull request #2963 from tadghh/patch-2
...
Fixed ReadMe badge styling
2024-01-05 18:35:46 -08:00
Tadgh Henry
9c45eaa062
Fixed badge styling
...
whitespace is being interpreted by the a tag causing blue hyperlinks to show up between the badges.
2024-01-02 12:49:53 -06:00
Jesse Wang
91c6e6668b
fix(postgres): avoid unnecessary flush in PgCopyIn::read_from
2023-12-12 22:53:00 +13:00
Arthur
7becff70ba
fix duplicate "`" in FromRow "default" attribute doc comment
2023-12-07 14:36:00 +08:00
Austin Bonander
929af41745
Merge pull request #2898 from Vrajs16/fix-docs
...
Fixed docs
2023-11-25 11:01:48 -08:00
Vraj Shah
e214a08ede
Fixed docs
2023-11-25 10:11:00 -05:00
Austin Bonander
c55aba0dc1
Merge pull request #2895 from launchbadge/release/0.7.3
...
0.7.3 release
2023-11-22 18:23:16 -08:00
Austin Bonander
b4cce67b83
fix(changelog): correct release date for 0.7.3
...
also fix formatting for 0.6.3 cause it was bugging me
2023-11-22 18:11:58 -08:00
Austin Bonander
213ecd743c
chore: upgrade libsqlite3-sys
2023-11-22 17:55:04 -08:00
Austin Bonander
31d402b469
chore: prepare 0.7.3 release
2023-11-22 17:43:46 -08:00
Austin Bonander
9fc9e7518e
feat: Text
adapter ( #2894 )
2023-11-22 17:06:47 -08:00
Vraj Shah
62f82cc43a
Fixed force dropping bug ( #2892 )
2023-11-21 12:42:08 -08:00
Vraj Shah
fda415927a
Sqlx Cli: Added force flag to drop database for postgres ( #2873 )
...
* Updated ahash so it can compile on mac
* Updated MigrateDatabase Trait + related functions
* Postgres force drop database flag impl
* Update migrate.rs
* Reverted MigrateDatabase Trait
* Update migrate.rs
* Update migrate.rs
* Added force drop database fn impl
* Add Migrate Error
* Fixed changed function name
2023-11-21 11:11:08 -08:00
Austin Bonander
ed1b030e91
doc(sqlite): cover lack of NUMERIC
support ( #2890 )
2023-11-20 20:14:20 -08:00
Ferenc Tamás
d3a28d461f
Do not require db url for prepare ( #2882 )
...
* feat(cli): do not require db url
* chore: remove unused import
* fix(cli): do not always pass DATABASE_URL
* fix(cli): check db when DATABASE_URL is provided
2023-11-20 20:11:23 -08:00
Austin Bonander
979a55da9d
feat: use specific message for slow query logs ( #2880 )
...
closes #2669
2023-11-15 20:08:09 -08:00
Roberto Ripamonti
16eeea8611
Add fixtures_path
in sqlx::test args ( #2545 )
...
* feat: add fixtures_path
* test: add test for fixtures_path
* docs: expand test docs with fixtures_path
* test: add new test instead of co-opting and old one.
* feat: add explicit path operating mode for fixtures parameters and allow combining multiple fixtures parameters
* fix: require .sql extension for explicit path fixtures
* feat: add custom relative path style to fixtures argument
* fix: missing cfg feature
* docs: update
* fix: explicit fixtures styling checks for paths. Remove strict sql extension requirement for explicit path, they still need an extension. Add .sql extension to implicit fixtures style only if missing.
* style: cargo fmt
* docs: update documentation
2023-11-15 16:08:24 -08:00
Shift Right Once
9a6ebd0a74
Add a get_database
method ( #2871 )
...
The Postgres implementation has this method. It is also
helpful for queries that require the current datbase name.
example:
```sql
SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_name = ? &&
table_schema = ?;
```
2023-11-15 15:22:15 -08:00
Vraj Shah
6ecb5831f4
Update Faq - Bulk upsert with optional fields ( #2865 )
...
* Update Faq - Bulk upsert with optional fields
* Applied Suggestion + fixed typo
2023-11-07 20:05:11 -08:00