Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB Framework for Infra Management #1

Merged
merged 6 commits into from
Apr 17, 2020

Conversation

NajmudheenCT
Copy link
Member

Initial DB Framework for Infra Management ,
includes a sample model and implemenation of storage_create operation

dolphin/db/sqlalchemy/models.py Outdated Show resolved Hide resolved
dolphin/db/api.py Outdated Show resolved Hide resolved
dolphin/db/sqlalchemy/api.py Show resolved Hide resolved
etc/dolphin/dolphin.conf Outdated Show resolved Hide resolved
primaryjoin="and_("
"Storage.id=="
"ConnectionParams.storage_id)")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add all the models here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added Volumes and pool for now.. relation with storage is defined, more relations and models need to be added.. once the initial framework is up..

metadata = None


class ConnectionParams(BASE, DolphinBase):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest RegistryContext to replace ConnectionParams

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, modified

dolphin/db/sqlalchemy/models.py Show resolved Hide resolved
storage_id = Column(String(255))
description = Column(String(255))
status = Column(String(255))
total_capacity = Column(Numeric)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is Numeric a double type?

@wisererik wisererik merged commit f050b08 into sodafoundation:master Apr 17, 2020
NajmudheenCT pushed a commit that referenced this pull request Aug 28, 2020
joseph-v pushed a commit that referenced this pull request Jun 27, 2022
amanr032 pushed a commit to amanr032/delfin that referenced this pull request Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants