Skip to content

Releases: G4brym/workers-qb

v1.5.1

05 Sep 19:52
26bf427
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.0...v1.5.1

v1.5.0

31 Aug 11:00
172d8aa
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.3...v1.5.0

v1.4.3

28 Aug 10:04
b91917e
Compare
Choose a tag to compare

What's Changed

  • Add .count() method to selects by @G4brym in #53
const result = await qb.fetchAll({
  tableName: 'employees',
}).count()

console.log(`Total Employees ${result.results.total}`)

Full Changelog: v1.4.2...v1.4.3

v1.4.2

27 Aug 17:20
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.1...v1.4.2

v1.4.1

01 Aug 14:27
ea038a5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.0...v1.4.1

v1.4.0

30 Jul 19:06
58e7323
Compare
Choose a tag to compare

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

v1.3.1

17 Jul 20:46
de9c1b5
Compare
Choose a tag to compare

What's Changed

  • Add remaining D1 meta properties to the returning object by @G4brym in #48

Full Changelog: v1.3.0...v1.3.1

v1.3.0

22 Jun 13:54
fd2affb
Compare
Choose a tag to compare

What's Changed

  • Maintenance release: refactor tooling around package build and release by @G4brym in #45

Full Changelog: v1.2.4...v1.3.0

v1.2.4

15 Jun 19:12
Compare
Choose a tag to compare

What's Changed

  • Add support for bigint as a type

Full Changelog: v1.2.3...v1.2.4

v1.2.3

01 Jun 15:05
Compare
Choose a tag to compare

What's Changed

  • Fix #41 insert, update, delete and raw queries now return the correct typescript type when returning one or multiple rows

Full Changelog: v1.2.2...v1.2.3