How to generate code for multiple databases?
See original GitHub issueHi,
Because I am stuck to .net 5 for now, I am using Facil 1.4.3. How do I handle multiple databases? According to the docs, I can have multiple yaml files. I created two yaml files facil_db1.yaml, facil_db2.yaml, but the build process complains:
Error No config file found. A minimal config file has been placed in the project directory (D:\TestDbAccess\facil.yaml). Re-build after editing the config. TestDbAccess D:\TestDbAccess\Facil 1
Also, it seems that there is a build hook that calls the facil generator, but I am not sure how I can override that command in case it supports specifying the yaml file name.
Thank you
Update: One option would be to create two library projects, one for each database and then reference these.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
How to Integrate Multiple Databases
Check out our in-depth guide to learn how to integrate multiple databases, for all kinds of app projects.
Read more >Jooq code generation from multiple databases - java
How can I configure my maven to generate code from different databases? I have this configuration: <plugin> <groupId>org.jooq</groupId> ...
Read more >Using Multiple Databases in ASP.NET Core via Entity ...
In this article, we'll learn how to add multiple databases in the ASP.NET Core project using Entity Framework Core and Repository Pattern.
Read more >Build and Connect Python App to Multiple Databases - YouTube
Learn how to build and connect Python App to multiple databases. You will explore the intricacies of working with multiple relational ...
Read more >Data Controllers / Multiple Databases
Code On Time Generator does not support generation from multiple databases. Creating an application that handles different data sources will require a combined ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, I’ll have a look at it.
I don’t think anything relevant changed between these versions.
If you want, I can check if you send me the actual table script rules from your YAML file and the actual name of the table. If you don’t want to post that publicly, I will wait for you to confirm yourself.