github kysely-org/kysely 0.11.4

latest releases: 0.27.4, 0.27.3, 0.27.2...
2 years ago

Support callback subqueries and raw expressions in insert queries:

db.with('jennifer', (db) => db
  .selectFrom('person')
  .where('first_name', '=', 'Jennifer')
  .select(['id', 'first_name'])
  .limit(1)
).insertInto('pet').values({
  id: db.generated,
  owner_id: (eb) => eb.subQuery('jennifer').select('id'),
  name: (eb) => eb.subQuery('jennifer').select('first_name'),
  species: 'cat',
})

Don't miss a new kysely release

NewReleases is sending notifications on new releases.