-
Notifications
You must be signed in to change notification settings - Fork 17
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
Move zmqServer, sqlLogger and streamMaster out of Root class #931
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## rogue_v6 #931 +/- ##
============================================
- Coverage 29.66% 29.52% -0.15%
============================================
Files 65 66 +1
Lines 6853 6903 +50
Branches 1069 1061 -8
============================================
+ Hits 2033 2038 +5
- Misses 4657 4708 +51
+ Partials 163 157 -6
|
@@ -95,20 +104,11 @@ def insert_from_q(self, entry, conn): | |||
path=entry[0], | |||
enum=str(entry[1].enum), | |||
disp=entry[1].disp, | |||
value=value, | |||
value=str(value), |
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.
It would be useful to store real values in the DB if possible. SQLite allows non-conforming types, so the value
column could have int
, float
or string
depending on the row.
In the future the Root class will be interface agnostic. As such it is not appropriate to continue to support a Root resident ZmqServer, SqlLogger or StreamMaster interface. Instead these will be treated as generic variableListeners which are created separately and added to the root class.
For a transition period the previous methods will be support with deprecation warnings generated when the legacy methods for creating these interfaces are used.
This new method will allow for more customization of these interfaces, as well as adding new interfaces, streamers and loggers to the Root class.
This is a RogueV6 Change.