v1.4.0
What's Changed
You can now do selects
in an ORM like syntax:
const qb = new D1QB(env.DB)
type Employee = {
name: string
role: string
level: number
}
const employeeList = await qb.select<Employee>('employees')
.where('active = ?', true)
.where('department = ?', 'HR')
.orderBy('created_at')
.execute()
Full Changelog: v1.3.1...v1.4.0