Skip to content

Reconsider proxy classes #14

@rmx90210

Description

@rmx90210

Datum was implemented with generic proxy classes like Table and Database which wrap a more specific child object, such as a PostgresTable or OracleStgeomTable. The purpose of this was to keep the interfaces consistent (e.g. a PostgresTable could never have a method that an OracleStgeomTable didn't). There was also a (partly cosmetic) motivation to standardize the results of type checks across like objects. However, there may be scenarios where there's useful functionality for one data source that doesn't make sense in another, like getting permissions from an Oracle SDE database. It may make more sense to move towards a constructor pattern that returns more specifically-typed objects and raising NotImplemented errors if something is missing in a subclass.

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