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

switch to generating substitution files for DB #94

Merged
merged 3 commits into from
Sep 13, 2023
Merged

switch to generating substitution files for DB #94

merged 3 commits into from
Sep 13, 2023

Conversation

gilesknap
Copy link
Member

Now creates substitution files from the database entries in the IOC YAML. like below

I think this is a bit ugly but it works and is readable.
@coretl @GDYendell @niamhdougan take a look if you feel like making it nicer. :-)

################################################################################
# DB substitution file generated by https://github.com/epics-containers/ibek
################################################################################

file "another_test.db" {
pattern 
	{ name,            my_int_enum, clock_rate, db_calculated,         calculated_one } 
	{ "AllObject One", "2",         "dummy",    "HELLO AllObject One", "AllObject One.AllObject One String.1.1.0.True" } 
	{ "AllObject Two", "1",         "1",        "HELLO AllObject Two", "AllObject Two.AllObject Two String.1.1.0.True" } 
}


file "yet_another.db" {
pattern 
	{ name,            my_object, my_float, my_bool } 
	{ "AllObject One", "Ref1",    "1.0",    "True" } 
	{ "AllObject Two", "Ref1",    "1.0",    "True" } 
}


file "test.db" {
pattern 
	{ name,                   ip,          value } 
	{ "Consumer Two With DB", "127.0.0.1", "Ref1.127.0.0.1" } 
}


@gilesknap
Copy link
Member Author

This is a fix for #59

@gilesknap gilesknap merged commit 1ca4b5d into main Sep 13, 2023
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