k1LoW / tbls

tbls is a CI-Friendly tool for document a database, written in Go.
MIT License
3.32k stars 163 forks source link

Split configuration file for one schema #561

Closed YuheiTakagawa closed 4 months ago

YuheiTakagawa commented 4 months ago

Hi, I think very grateful this project.

As our schema has grown with an increase in relations and comments, it has become increasingly difficult to manage within a single YAML file. I'm seeking a method to split the YAML configuration for a single schema across multiple files.

Currently, when using multiple -c options with the doc command, it appears to only reference the last YAML file provided. Is there a way to import multiple YAML configurations within a tbls.yml, similar to an include or import directive in other languages?

k1LoW commented 4 months ago

Maybe https://github.com/k1LoW/tbls-build could be a solution.

YuheiTakagawa commented 4 months ago

I see, so it's possible to merge multiple yaml files into a single yaml file using the subcommand. I'll definitely utilize this. Thank you!