© 2026 Hedgehog Software, LLC
const authorOrNull = await db.transaction(async (tx) => { const [u] = tx.insert(user).values(val).onConflictDoNothing().returning() if u: const [a] = tx.insert(author).values({ uId: u.id }).returning() return a ?? null })