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

SQL methods #189

Merged
merged 37 commits into from
Dec 21, 2023
Merged

SQL methods #189

merged 37 commits into from
Dec 21, 2023

Conversation

maxwai
Copy link
Collaborator

@maxwai maxwai commented Nov 17, 2023

Added first batch of Methods. For now these should be enough. If more are needed later while writing the bot, these will be added at that time.

It is made so that Channel or Roles can change (except tmpc voice channels) but the guild id can't change.
Every foreign key can be deleted.
@maxwai maxwai added the WIP PR is WIP label Nov 17, 2023
@maxwai maxwai added this to the SS23 milestone Nov 17, 2023
@maxwai maxwai self-assigned this Nov 17, 2023
@maxwai maxwai linked an issue Nov 17, 2023 that may be closed by this pull request
@maxwai maxwai added next-semester This is only needed for the start of the next Semester Prio 1 ready for review PR is ready for review and removed WIP PR is WIP next-semester This is only needed for the start of the next Semester labels Dec 17, 2023
@maxwai maxwai marked this pull request as ready for review December 17, 2023 15:06
Copy link
Collaborator

@byte-sized-emi byte-sized-emi left a comment

Choose a reason for hiding this comment

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

Code looks good, I'd personally use query_as!() and #[derive(FromRow)]

For the logic side, I'm not sure, I don't know what exactly it's supposed to do. Will approve anyway

@maxwai maxwai merged commit d9c4df4 into main Dec 21, 2023
3 checks passed
@maxwai maxwai deleted the sql_methods branch December 21, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prio 1 ready for review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add database methods
2 participants