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

draft: Usage of Seaorm with SELECT statements: #67

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xunjin
Copy link
Contributor

@Xunjin Xunjin commented Jan 11, 2024

  • Shows a simple select query with a where conditional get_realm_bind_ip
  • A more complex query which needs usage of a join to fetch data in the method sea_get_all_realms_with_num_characters

In the second example, I've kept both the original method and the new one based on SeaORM to show the “complexity” between both.

Note: Some points I've not worked on, like ActiveModel (which allows change data to be saved later, adds validation logics in the pipeline too if needed), Migrations, and other useful Database Operations from CRUD.

- shows a simple select query with a where conditional `get_realm_bind_ip`
- A more complex query which needs usage of a join to fetch data in the method `sea_get_all_realms_with_num_characters`

In the second example I've kept both original method and the query to show the "complexity" between both.
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.

None yet

1 participant