-
Notifications
You must be signed in to change notification settings - Fork 71
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: Creating a provider without an access to DB #409
Comments
Pretty sure there are other SQL TPs that work off provided schemas. This project needs some fixes to be net5.0 compatible., most especially #374 |
You need to create a db based on a schema file. For example in our SSDT project we have this post-build event:
The powershell files are:
and
Took ages to get this right because of the terrible languages involved, but once setup the process becomes very smooth. |
I've investigated approach of serializing the stuff to have the SqlCommandProvider working on top of a serialized .json of the schema metadata used by the provider at design time. It is a viable approach, but it still requires, when updating .sql files (which invalidates the .json cache) to have a dbserver. The usual approach, as far as I'm concerned with using this library, is to have db preparation in the build script, and indeed, having that db available on the development / integration machine. I don't have free time to commit into taking this investigation/prototype towards a stable implementation and updated version of the library, I've seen the pros/cons of the above while experimenting and it doesn't help much in my current usecase. |
Hi, thanks for the lib, looks great!
One question: it is possible (or can it be possible) to instantiate providers without requiring to have an access to DB?
Give them a schema file, or somehow similar?
This would allow building in CI easier, more reproducible builds, etc...
The text was updated successfully, but these errors were encountered: