Skip to content

Database#tables and DBMLTable#columns should be read-only #67

Description

@Spikhalskiy

Currently, it's too easy to end up with an inconsistent Database entity by creating a column or table and appending it directly to Database#tables or DBMLTable#columns collections. Doing so, the correspondent table will not have a database property set, and the correspondent column will not have a table property set.

Database#tables and DBMLTable#columns should return read-only collections that don't allow direct modifications.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions