nitrictech / cli

Nitric CLI. Manage and run Nitric apps locally and deploy to any cloud.
https://nitric.io
Apache License 2.0
26 stars 10 forks source link

feat: Initial SQL support #732

Closed tjholm closed 5 months ago

tjholm commented 6 months ago

Add support for collecting SQL database requirements and building migrations.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 0% with 402 lines in your changes missing coverage. Please review.

Project coverage is 1.29%. Comparing base (6a592a7) to head (d3539af).

Files Patch % Lines
pkg/cloud/sql/sql.go 0.00% 116 Missing :warning:
pkg/collector/spec.go 0.00% 91 Missing :warning:
pkg/project/migrations.go 0.00% 85 Missing :warning:
pkg/view/tui/commands/local/startup.go 0.00% 48 Missing :warning:
pkg/view/tui/commands/build/build.go 0.00% 18 Missing :warning:
pkg/dashboard/dashboard.go 0.00% 17 Missing :warning:
pkg/cloud/cloud.go 0.00% 11 Missing :warning:
pkg/project/project.go 0.00% 7 Missing :warning:
pkg/collector/service.go 0.00% 6 Missing :warning:
pkg/cloud/resources/resources.go 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #732 +/- ## ======================================== - Coverage 1.36% 1.29% -0.07% ======================================== Files 75 78 +3 Lines 7848 8231 +383 ======================================== Hits 107 107 - Misses 7733 8116 +383 Partials 8 8 ``` | [Flag](https://app.codecov.io/gh/nitrictech/cli/pull/732/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nitrictech) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/nitrictech/cli/pull/732/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nitrictech) | `1.29% <0.00%> (-0.07%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nitrictech#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

tjholm commented 5 months ago

Works great. Only thing is nitric start does not show any progress when pulling postgres locally.

Have implemented a quick version of this with a simple Starting Local Cloud message.

nitric-bot commented 5 months ago

:tada: This PR is included in version 1.42.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: