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

SelectTwo cursor by, cursorTrait revamp #1826

Merged
merged 13 commits into from
Sep 22, 2023

Conversation

darkmmon
Copy link
Contributor

PR Info

  • Dependencies:
  • Dependents:

New Features

  • added cursor_by for selectTwo struct

Bug Fixes

Breaking Changes

Changes

  • Change CursorTrait behaviour, can be phased out in future

Copy link
Member

Choose a reason for hiding this comment

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

This is a very interesting test case. But 1) please add, not change and 2) this is not relevant to the current PR?

Comment on lines +411 to +412
#[smol_potat::test]
async fn first_2_before_10_also_related_select() -> Result<(), DbErr> {
Copy link
Member

Choose a reason for hiding this comment

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

These tests are cool! Would appreciate a few integration tests (in sqlite/mysql/postgres)

tests/cursor_tests.rs Outdated Show resolved Hide resolved
}

impl<S> Cursor<S>
where
S: SelectorTrait,
{
/// Initialize a cursor
pub fn new<C>(query: SelectStatement, table: DynIden, order_columns: C) -> Self
pub fn new<C>(
Copy link
Member

Choose a reason for hiding this comment

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

Note to self: new with

@tyt2y3 tyt2y3 merged commit 27ca745 into SeaQL:master Sep 22, 2023
32 checks passed
@tyt2y3
Copy link
Member

tyt2y3 commented Sep 23, 2023

This has also been released in 0.12.3

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.

Implement CursorTrait for SelectTwo
2 participants