-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
corePython-related, no Postgres knowledge neededPython-related, no Postgres knowledge neededenhancementNew feature or requestNew feature or request
Description
User story
As a DBA, I want to be able to control the creation of the objects on the Postgresql server using Dynamic Objects and Collections so that my productivity increases.
Acceptance Criteria
.new()method should be added to object collections.new()should create an ephemeral object with default settings, only requiring a name as a parameter.- The object will remain ephemeral until either
.create()is called, or it's added to the parent collection using the.add()method. - Documentation should only refer to the child object class instead of listing all possible arguments.
.add()method should be added to object collections. It should:- check if that object already belongs to a different collection (and fail if the object belongs to a different parent)
- add the said object to the collection
- assign parent
- call
.create()of that object
- These methods should either have an abstract implementation on the parent classes and be enforced on all child classes, or they should be generic enough to work on every child class as is. It is also possible to still ask for implementation on the child classes, but use
super()for the common bits.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
corePython-related, no Postgres knowledge neededPython-related, no Postgres knowledge neededenhancementNew feature or requestNew feature or request