Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use RETURNING clause and IDENTITY GENERATED ALWAYS for Ids #183

@ehuelsmann

Description

@ehuelsmann

Issue Template

Description

PostgreSQL, Oracle, MySQL/MariaDB and SQLite all support RETURNING, which saves a "post-fetch".

All except SQLite support GENERATED ALWAYS AS IDENTITY. SQLite supports autoincrement. All of these allow RETURNING to indicate the ID primary key of the newly inserted row. All of the above also have functions to generate UUID columns.

Using the database to assign the row value instead of supplying one simplifies the code to insert a new workflow it history item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions