-
Notifications
You must be signed in to change notification settings - Fork 18
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
Question: Data Provider and Persistence #24
Comments
Yes absolutely - but likely not in open-source... except for maybe one such data provider as a way to demonstrate how such custom data provider can be created/used inside a yang-js enabled application. We see this problem domain as an implementation-specific (platform) requirement and outside the scope of our community-supported open source library and tools. Also, the hooks for this will be provided at the runtime/engine layer, such as yang-express, instead of being a facility at the yang-js layer. The general philosophy/approach is to keep things highly modular with minimal dependencies so that during the application composition time, the necessary dependencies can be discovered and utilized on-demand as needed, based on availability. |
@saintkepha Certainly makes sense to have such customization at the yang-express layer. It also makes sense to provide examples to plug in different data providers (just a howto will work with a sample). |
@saintkepha Sure. Since we are talking about YANG model driven application, it makes sense to pick a datastore that is most suitable for such a data structure. Have a look at sysrepo (https://github.com/sysrepo/sysrepo) which is a YANG model based configuration datastore. Though the API they have is completely C, but looking at the Google Protocol Buffer spec they have (though proto2), implementing a Javascript client API using protobuff.js (or creating a swig and generating code) should not be very very difficult. |
@ramukima - that is a fantastic reference! Yes, proto2 support is on the
|
Will work on data persistence layer adapters by extending the new |
I am not sure what do you plan to allow for model persistence in a yang-js based application, hence my question.
Do you have plans to support data provider APIs e.g. yang-js to allow custom data provider plugins to be able to load and store data directly from the provider using a standard provider API.
I see that the eventing mechanism can be used to persist data in a datastore. This applies to create/update/delete may be. However, I am not sure about your plans to support fetch on behalf of a GET. May be I am yet to understand how this currently happens.
The text was updated successfully, but these errors were encountered: