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

Rework compilation to no longer require active database #27

Closed
5 tasks done
Victov opened this issue Oct 15, 2022 · 1 comment
Closed
5 tasks done

Rework compilation to no longer require active database #27

Victov opened this issue Oct 15, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Victov
Copy link
Owner

Victov commented Oct 15, 2022

sqlx has some option to generate a json file to be able to compile your project without requiring an active database connection.

This will improve iteration time, simplify the github actions and lower the barrier for people to get working on the project.

  • Get sqlx to generate that json file
  • Enable database-less compilation
  • Update github actions to work with the json file instead of booting and seeding a database
  • Update readme
  • Compile-time checks that the schema still matches the database must remain intact, do not change the rust code so that the compile time checks disappear.

Azerust has this setup working, for inspiration

@Victov Victov added enhancement New feature or request help wanted Extra attention is needed labels Oct 15, 2022
@Victov
Copy link
Owner Author

Victov commented Mar 12, 2023

Taken care of in #55 and updated github checks in #56.

Offline compilation is now possible, given that the .env files are properly setup. .env.template file have been updated, so copying those should do the trick

@Victov Victov closed this as completed Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant