Skip to content
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

Expose pipes_as_concat in the database URL #2775

Closed
wants to merge 1 commit into from
Closed

Conversation

ibab
Copy link

@ibab ibab commented Sep 24, 2023

The option to set pipes_as_concat is currently not exposed in the MySQL database URL parsing function.
Because some sqlx features like cargo build support and cargo sqlx can only be configured through a database URL this makes it impossible to work with some databases that don't support PIPES_AS_CONCAT.
This adds the ability to set the flag through the database URL, which makes it possible to work with those databases.

@abonander
Copy link
Collaborator

I'm still of the same persuasion as #2135: I don't think the database URL is the right place for this setting to live, as it's less a property of a given connection and more of a property of the code that's going to be using the connection and whether it assumes pipes mean concat or not.

We really need to be able to pass this configuration directly to the macros somehow. I'm not going to make any promises I can't keep, but I'd certainly like to work on a solution for this for the next release.

There's some existing discussion in #121.

@abonander abonander closed this Sep 26, 2023
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.

2 participants