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

Add dynamic selects #49

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Add dynamic selects #49

merged 2 commits into from
Jul 30, 2024

Conversation

G4brym
Copy link
Owner

@G4brym G4brym commented Jul 29, 2024

New select interface allows developers to chain the select fields:

const qb = new D1QB(env.DB)

const result = await qb.select('my-table')
                        .where('active = ?', true)
                        .where('department = ?', 'HR')
                        .orderBy('id')
                        .execute()

@G4brym G4brym merged commit 58e7323 into main Jul 30, 2024
3 checks passed
@G4brym G4brym deleted the add-dynamic-selects branch July 30, 2024 19:03
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.

1 participant