Jacob Richards

    Jacob Richards

    3 years ago
    is it possible to return the entire row you’ve just inserted with .insert? I know there’s insertAndGetId, but I want to return the entire row.
    s

    spand

    3 years ago
    I guess the reason why you need the roundtrip is that the database might have default values.
    k

    kushalp

    3 years ago
    You could write it as raw SQL with
    RETURNING ( ... )
    tapac

    tapac

    3 years ago
    @Jacob Richards, try to check
    resultedValues
    of
    InsertStatement
    returned from
    insert
    function