Skip to content

Add support for computed fields #340

Open

Description

@yuvalek

The code today does not support computed fields.
When sqlalchemy-continuum tried to create the versioned row it also tried to write a value to the computed column thus making an error.

Activity

  1. yuvalek commented on Oct 31, 2023

    @yuvalek
    Author

    My pr excludes computed columns when writing but still creates them in the DB.

  2. yoshpe commented on May 8, 2024

    @yoshpe

    I've tested it, however the function versioned_column_properties isn't seemed to be called when generating the Metadata schema (the columns are still added to the history's table)

    As a workaround, you can add 'exclude' to the __versioned__ key, and manually exclude the column, which works

  3. marksteward commented on May 8, 2024

    @marksteward
    Collaborator

    Yeah I'm not sure how we'd do this any way other than ignoring them. Suggestions welcome.

  4. yuvalek commented on May 9, 2024

    @yuvalek
    Author

    It is weird because I tested it locally when I wrote it and it did work and excluded the column.

  5. added
    pinned
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pinned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions