-
Notifications
You must be signed in to change notification settings - Fork 354
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
Conversation
primaryjoin="and_(" | ||
"Storage.id==" | ||
"ConnectionParams.storage_id)") | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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..
dolphin/db/sqlalchemy/models.py
Outdated
metadata = None | ||
|
||
|
||
class ConnectionParams(BASE, DolphinBase): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, modified
storage_id = Column(String(255)) | ||
description = Column(String(255)) | ||
status = Column(String(255)) | ||
total_capacity = Column(Numeric) |
There was a problem hiding this comment.
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?
Initial DB Framework for Infra Management ,
includes a sample model and implemenation of storage_create operation