0.11.4
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',
})