Skip to content

SelectBuilder where_by for any type non-indexed#56

Merged
Handy-caT merged 1 commit intomainfrom
select_by_brute
Mar 17, 2025
Merged

SelectBuilder where_by for any type non-indexed#56
Handy-caT merged 1 commit intomainfrom
select_by_brute

Conversation

@the2pizza
Copy link
Copy Markdown

Add where_by for select builder; works with any column Accepts Fn
Moved where_by to range_by (works with number columns)

Example:

let all = table
        .select_all()
        .range_by(0..10, "test")
        .where_by(|row| row.exchange.contains("Test")
        .where_by(|row| row.exchange.eq("Test")
        .where_by(|row| row.test >= 100)
        .execute()
        .expect("rows");

Works as well for select_by_filed()

@Handy-caT Handy-caT merged commit c7040b6 into main Mar 17, 2025
4 checks passed
@Handy-caT Handy-caT deleted the select_by_brute branch April 16, 2025 11:33
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.

2 participants