Skip to content

feat: Add commands to manage DBs in a cloud database service#31

Merged
amstuta merged 1 commit intomainfrom
dev/aamstutz/cloud-database-new-cmds
Sep 26, 2025
Merged

feat: Add commands to manage DBs in a cloud database service#31
amstuta merged 1 commit intomainfrom
dev/aamstutz/cloud-database-new-cmds

Conversation

@amstuta
Copy link
Collaborator

@amstuta amstuta commented Sep 26, 2025

Description

  • Rename command cloud database to cloud database-service
  • Add subcommands to manage databases in a Public Cloud Database service

Type of change

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that can break a current behavior)

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code
  • I updated the documentation by running make doc
  • I ran go mod tidy

@amstuta amstuta requested a review from Copilot September 26, 2025 13:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames the cloud database command to cloud database-service to better reflect its purpose of managing database services/clusters, and adds new subcommands under database to manage individual databases within those services.

  • Renames cloud database to cloud database-service throughout the codebase
  • Adds database subcommands for CRUD operations on databases within a database service
  • Updates all documentation to reflect the command structure changes

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

File Description
internal/services/cloud/cloud_database.go Adds new struct and functions for database management within services
internal/cmd/cloud_database_test.go Updates test commands to use new database-service naming
internal/cmd/cloud_database.go Restructures commands and adds database subcommands with proper CLI structure
doc/*.md Updates all documentation files to reflect the new command structure and naming

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

)

var responseBody map[string]any
if err := httpLib.Client.Post(endpoint, DatabaseDatabaseSpec, &responseBody); err != nil {
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable DatabaseDatabaseSpec is being passed directly instead of the instance. It should be &cloud.DatabaseDatabaseSpec to pass the actual struct data.

Suggested change
if err := httpLib.Client.Post(endpoint, DatabaseDatabaseSpec, &responseBody); err != nil {
if err := httpLib.Client.Post(endpoint, &DatabaseDatabaseSpec, &responseBody); err != nil {

Copilot uses AI. Check for mistakes.
## ovhcloud cloud database-service get

Get a specific database
Get a specific database services
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar error: 'services' should be singular 'service' to match the context of getting a specific database service.

Suggested change
Get a specific database services
Get a specific database service

Copilot uses AI. Check for mistakes.
Signed-off-by: Arthur Amstutz <arthur.amstutz@corp.ovh.com>
@amstuta amstuta force-pushed the dev/aamstutz/cloud-database-new-cmds branch from 13e60c5 to b5d245e Compare September 26, 2025 13:25
@amstuta amstuta merged commit 9588435 into main Sep 26, 2025
3 checks passed
fluatovh pushed a commit to fluatovh/ovhcloud-cli that referenced this pull request Nov 17, 2025
feat: Add commands to manage DBs in a cloud database service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants