idearium / cli

The Idearium cli, which makes working with our projects, super easy :)
MIT License
0 stars 0 forks source link

Add support for a new database information format #52

Closed smebberson closed 2 years ago

smebberson commented 2 years ago

The cli now supports two database information formats.

The existing one:

{
  host: "{hostname}",
  name: "{database-name}",
  params: ["--ssl", "--sslAllowInvalidCertificates"],
  password: "{password}",
  port: "{port}",
  user: "{username}",
}

An alternative format:

{
  address: "mongodb+srv://{domain}",
  name: "{database-name}",
  params: ["--ssl", "--sslAllowInvalidCertificates"],
  password: "{database-password}",
  user: "{username}",
}

The new format allows for the protocol to be expressed.

Related PRs

Notes

Verification and testing

If there is both a problem and a solution, these steps should document how to demonstrate the problem that is being solved. If there is no problem (it's just a feature) you can remove the Recreate section below.

Verification

These are the steps to demonstrate the problem being solved:

Testing

These are the steps to demonstrate the solution being solved; they typically include steps to update the repository to a new state containing the code that fixes the problem.

Deployment