Odonno / surrealdb-migrations

An awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project.
https://crates.io/crates/surrealdb-migrations
MIT License
210 stars 16 forks source link

Feature: use local config files #71

Closed itsezc closed 7 months ago

itsezc commented 7 months ago

Is your feature request related to a problem? Please describe. In scenarios where there are monorepos, which might have multiple schemas, it should be possible to have multiple schemas by having config files at a folder level from where the CLI is in the CWD.

Odonno commented 7 months ago

Hello @itsezc

It should already be available using the following option:

--config-file <CONFIG_FILE>  Path to the configuration file Default value is `.surrealdb`

You could have a .surrealdb file per migration project or you can define a configured file at the root of your monorepo. Or may I misunterdood your use case?

itsezc commented 7 months ago

Hello @itsezc

It should already be available using the following option:

--config-file <CONFIG_FILE>  Path to the configuration file Default value is `.surrealdb`

You could have a .surrealdb file per migration project or you can define a configured file at the root of your monorepo. Or may I misunterdood your use case?

No this is spot on, thanks!