You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geni currently lacks a way to specify which database to target when running commands, making it challenging to manage multiple libSQL databases in a single project. Additionally, the tool relies solely on environment variables for configuration, which can be cumbersome for projects with multiple databases.
Proposed Solution
Introduce a new --database or -d flag for Geni commands to allow specifying the target database.
Implement support for a geni.toml configuration file to define multiple database configurations.
Example usage:
geni up --database project
geni up --database project-schema
Implementation Details
Add support for a geni.toml file with the following structure:
Hey!
Thank you for the contributing with this issue. I like the idea and I think I might tweak the database_token to allow to read ENV variable mainly as this is a secret. But I like the idea! :D
Problem
Geni currently lacks a way to specify which database to target when running commands, making it challenging to manage multiple libSQL databases in a single project. Additionally, the tool relies solely on environment variables for configuration, which can be cumbersome for projects with multiple databases.
Proposed Solution
--database
or-d
flag for Geni commands to allow specifying the target database.geni.toml
configuration file to define multiple database configurations.Example usage:
Implementation Details
Add support for a
geni.toml
file with the following structure:Modify the Geni CLI to:
--database
flaggeni.toml
file if presentgeni.toml
file is found or no--database
flag is specifiedUpdate the internal logic to use the specified database configuration when executing commands.
Update documentation to reflect the new functionality and
geni.toml
usage.Benefits
Questions
geni.toml
file?geni.toml
, command-line flags, and environment variables?Acceptance Criteria
--database
flag for all relevant commandsgeni.toml
configuration filegeni.toml
configurationgeni.toml
usageYour feedback and additional ideas for this feature are welcome!
The text was updated successfully, but these errors were encountered: