Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ahmadbky
Copy link
Contributor

PR Info

New Features

* Add new `"mariadb"` feature flag.
* Check for it when matching the MySql backend to know if DB backend
  supports "returning" syntax.
Copy link
Member

@Expurple Expurple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

I recognize that the clippy errors in CI come from the base branch and are not related to your change

sqlx-mysql = ["sqlx-dep", "sea-query-binder/sqlx-mysql", "sqlx/mysql"]
sqlx-postgres = ["sqlx-dep", "sea-query-binder/sqlx-postgres", "sqlx/postgres", "postgres-array"]
sqlx-sqlite = ["sqlx-dep", "sea-query-binder/sqlx-sqlite", "sqlx/sqlite"]
mariadb = ["sqlx-mysql"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the contribution!

Regarding feature flag names, I feel MariaDB is a bit vague. I think the following options are clearer:

  • (with-)mariadb-returning if we want more fine-grained feature control.
  • (with-)mariadb-dialect if we intend to group all MariaDB-specific features under this flag.

@Expurple @tyt2y3 What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think that implicitly enabling sqlx-mysql is unnecessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you. let's go with mariadb-use-returning to be more consistent with sqlite-use-returning-for-3_35.
I;'ll make the change after merge.

@tyt2y3 tyt2y3 merged commit fb8eb5e into SeaQL:1.1.x Sep 29, 2025
35 of 36 checks passed
tyt2y3 pushed a commit that referenced this pull request Sep 29, 2025
* Add new `"mariadb"` feature flag.
* Check for it when matching the MySql backend to know if DB backend
  supports "returning" syntax.
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

🎉 Released In 1.1.17 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow exec_with_returning_many with MariaDB

4 participants