question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to generate code for multiple databases?

See original GitHub issue

Hi,

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:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cmeerencommented, Dec 14, 2021

Thanks, I’ll have a look at it.

0reactions
cmeerencommented, Dec 16, 2021

Keep in mind that I am using version 1.4.3 while you are using 2.x. That could account for the difference.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found