Skip to content

Improve insert codegen for autogenerated columns #12

@sake92

Description

@sake92

When inserting an autogenerated column, we should usually skip it.

E.g. in H2 they have GENERATED ALWAYS AS IDENTITY, in this case we should always skip it, or else it throws an error.

There is also GENERATED BY DEFAULT AS IDENTITY, which is a bit harder.
Here we can add id: Option[PK] = None and use it only if not None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions