Skip to content

Added variables to database command template parameters#377

Merged
ritchiecarroll merged 1 commit intomasterfrom
ImprovedDatabaseNotifier
Feb 21, 2025
Merged

Added variables to database command template parameters#377
ritchiecarroll merged 1 commit intomasterfrom
ImprovedDatabaseNotifier

Conversation

@ritchiecarroll
Copy link
Copy Markdown
Member

@ritchiecarroll ritchiecarroll commented Feb 21, 2025

This PR makes the DatabaseNotifier adapter much more useful by supporting variable names and values in the templated database command parameters, in addition to {Acronym} and {Timestamp} which were already available.

For example:

  • VariableList={x = A:FREQ; y = B:MAG; z = C:ANG}
  • DatabaseCommand=INSERT INTO RemoteSystemTable(Freq, Mag, Ang) VALUES(@p0, @p1, @p2)
  • DatabaseCommandParameters={{x}, {y}, {z}}
  • ExpressionText=x > 60.04

Also includes improved feedback reporting.

@ritchiecarroll ritchiecarroll self-assigned this Feb 21, 2025
@ritchiecarroll ritchiecarroll merged commit be4e6c2 into master Feb 21, 2025
3 checks passed
@ritchiecarroll ritchiecarroll deleted the ImprovedDatabaseNotifier branch February 21, 2025 04:51
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.

1 participant