Documentation
    Preparing search index...

    Variable unionAllConst

    Adds union all set operator to the query.

    Calling this method will combine the result-set of the select statements and keep all duplicate rows that appear across them.

    See docs: https://orm.drizzle.team/docs/set-operations#union-all

    // Select all transaction ids from both online and in-store sales
    import { unionAll } from 'drizzle-orm/sqlite-core'

    await unionAll(
    db.select({ transaction: onlineSales.transactionId }).from(onlineSales),
    db.select({ transaction: inStoreSales.transactionId }).from(inStoreSales)
    );
    // or
    await db.select({ transaction: onlineSales.transactionId })
    .from(onlineSales)
    .unionAll(
    db.select({ transaction: inStoreSales.transactionId }).from(inStoreSales)
    );