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

[Feature Request] Adding a Way to configure the query! macro #1026

Closed
daggy1234 opened this issue Feb 2, 2021 · 3 comments
Closed

[Feature Request] Adding a Way to configure the query! macro #1026

daggy1234 opened this issue Feb 2, 2021 · 3 comments

Comments

@daggy1234
Copy link

The macro relies on connecting to the Database and evaluating the SQL for the query!. There should be the following configs

  • different env vars for the DATABASE_URL
  • Some way to disable the checking . Because like I build my apps using docker, and the db isn't available during my docker builds so maybe for like my dev enviroment I want teh checking, but during a prod build might be cool to disable

Thats all I had!

@jplatte
Copy link
Contributor

jplatte commented Feb 2, 2021

For building without database access, see https://www.github.com/launchbadge/sqlx/tree/master/sqlx-cli#readme

@daggy1234
Copy link
Author

Oh cool, will use offline builds thanks

@abonander
Copy link
Collaborator

Configuring the macros (including changing what env var it looks at) is being discussed in #916

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

No branches or pull requests

3 participants