Use OOP for db api
We would like to use more OOP in more parts of rally.
For db API :
https:/
We would like to have abstract class with abstract methods instead of a bunch of methods.
Steps to achieve this goal:
1. In the implementation:
https:/
Create from these methods class:
https:/
"class Connection(object): " and all these methods
And fix this line:
https:/
return Connection()
This should work out of box
2. Remove the import line in:
https:/
Things need to be done:
a.
b
c.
The reason to do this:
a.
b.
c.
=================== obsolete content =======
We can make 1 class and put all these methods as an abstract .
And in the implementation:
https:/
It should be actually subclass of this interface.
The whole change would be separated into two steps:
1. create class and put only these methods :
https:/
And, in implementation do the same.
2. put all methods into the class
=================== obsolete content =======
Blueprint information
- Status:
- Complete
- Approver:
- Boris Pavlovic
- Priority:
- Medium
- Drafter:
- li,chen
- Direction:
- Approved
- Assignee:
- li,chen
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Boris Pavlovic
- Completed by
- Boris Pavlovic
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Create class "Connection" for sqlalchemy.api