-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLx Next (0.7+) Tracking Issue #1163
Comments
Does the |
The next branch is a full rewrite of at least the core that is being developed in parallel at the moment. Postgres and MySQL are nearing feature parity with master. Once that happens we'll port the test suite and then audit the comparison to ensure we don't miss anything important. I know there will probably be some bumps but there are some good reasons for why a lot of these changes couldn't have easily been done iteratively, notably the runtimes and cancellation safety. |
@mehcode how up to date are checkboxes? Would you mind updating them? |
Could you guys also please look at the enum issue in mysql? where query_as! works fine but query_as() fails to do it properly. Right now we are overriding FromRow manually |
Would it be possible to re-release the old 0.6 as 0.7 with just the breaking libsqlite3-sys bump to 0.25.2? All pending changes in the main would then go to 0.8 instead. It's not like numbers have much "value" in of itself, easy to increment - and minor bump would indicate the breaking nature of the change, even though it would contain just a tiny but breaking fix. |
+1 |
If somebody volunteers time to prepare such 0.6+sqlite-fix branch could it be published once ready? |
I created a new PR that just bumps the sqlite3 #2455 based on the v0.6.3 release. See the description there, as it requires a new branch in order to be merged. |
hello, I noticed that changelog doesn't mention breaking change related to to reproduce cargo install --version 0.7.0 sqlx-cli and then run cargo sqlx prepare --merged -D "${DB_URI}" actual result
expected result |
Hey
This change is described in the breaking changes section at the top of
the changelog. The actual CLI flag `--merged` isn't mentioned in the
changelog though.
The offline mode for the queries has been changed to use a separate
file per query!() invocation, which is intended to reduce the number
of conflicts when merging branches in a project that both modified
queries. See [#2363] for details.
Regards Stefan
…On Sun, Jul 09, 2023 at 04:08:11AM -0700, Jakub Kołodziejczak wrote:
hello, I noticed that changelog doesn't mention breaking change related to `sqlx prepare` - namely `--merged` flag is no longer supported.
**to reproduce**
```console
cargo install --version 0.7.0 sqlx-cli
```
and then run
```console
cargo sqlx prepare --merged -D "${DB_URI}"
```
**actual result**
```
error: Found argument '--merged' which wasn't expected, or isn't valid in this context
If you tried to supply `--merged` as a value rather than a flag, use `-- --merged`
USAGE:
cargo sqlx prepare [OPTIONS] --database-url <DATABASE_URL> [-- <ARGS>...]
For more information try --help
```
**expected result**
I'm not really sure. Does it mean that with `0.7.0` I no longer need to have `sqlx-data.json`?
--
Reply to this email directly or view it on GitHub:
#1163 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
unfortunately after migrating to I'm getting:
and empty updateok so I had to:
-sqlx = { version = "^0", features = [
+sqlx = { version = "0.7.0", features = [
"chrono",
"macros",
"migrate",
- "offline",
"postgres", |
seems like #2086 introduced breaking change also for projects that don't do custom impl of more info in #2611 |
* DRAFT chore(backend): upgrade sqlx to ^0.7 related to: * #1858 * launchbadge/sqlx#1163 (comment) * (vol. 2) in 0.7, `Transaction` can no longer implement `Executor` directly ref: https://github.com/launchbadge/sqlx/blob/afb6b1066e61f8e3875f530d96cfb5a299f13fda/examples/postgres/transaction/src/main.rs#L14-L17 notice that I'm temporarly using my custom patch mrl5/sqlx@16e4c9a it's related to launchbadge/sqlx#2611 * post git rebase chores * use upstream fix from 0.7.1 * fix compile --------- Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
Things are taking longer than we'd like on this so I'm putting up a tracking issue to share some insight on what remains to be done in the
next
branch.Type-safe macros (
query!
, etc. )Transactions
Streams (
fetch
)Pool
Database Errors
Generalized Query Placeholders [Next] [Feature] Generalized query placeholders (including support for expanding arrays into multiple placeholders) #875
{0}
becomes$n
or?n
or@pn
, etc.{name}
is resolved to a positional parameter so this works anywhere - not just sqlite{name+}
=NULL
or$1, $2, ...
{(x.y.z)}
..some_struct
Struct update rest pattern syntax support for named bindings #591Runtime named parameters
TLS
Any (Driver)
Derives
FromRow
Type
Query logging
Statement caching
MySQL
Error::Client
for client errorsPostgreSQL
SQLite
The PostgreSQL and MySQL drivers are done enough to test and prod the basics if anyone has time to poke it.
The text was updated successfully, but these errors were encountered: