Skip to content

v1.4.0

Compare
Choose a tag to compare
@G4brym G4brym released this 30 Jul 19:06
· 33 commits to main since this release
58e7323

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