Skip to content

feat: support SQL database creation with initial properties#250

Open
v-alexmoraru wants to merge 4 commits into
microsoft:mainfrom
v-alexmoraru:v-alexmoraru/new-SQLDatabase-with-initial-properties
Open

feat: support SQL database creation with initial properties#250
v-alexmoraru wants to merge 4 commits into
microsoft:mainfrom
v-alexmoraru:v-alexmoraru/new-SQLDatabase-with-initial-properties

Conversation

@v-alexmoraru

Copy link
Copy Markdown
Member

No description provided.

@v-alexmoraru v-alexmoraru requested a review from a team as a code owner June 18, 2026 04:35
Copilot AI review requested due to automatic review settings June 18, 2026 04:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds support for creating SQL_DATABASE items with an optional creationPayload so initial SQL Database properties (and creation mode) can be set at creation time.

Changes:

  • Add _build_sql_database_creation_payload (and backup retention validation) and wire it into add_type_specific_payload for ItemType.SQL_DATABASE.
  • Introduce new SQL Database constants (creation modes, backup retention bounds) and CommonErrors helpers for validation messaging.
  • Add unit tests covering payload generation and validation scenarios; add a changelog entry.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_utils/test_fab_cmd_mkdir_utils.py Adds tests for SQLDatabase creation payload building/validation.
src/fabric_cli/utils/fab_cmd_mkdir_utils.py Builds/validates SQLDatabase creationPayload and attaches it during mkdir.
src/fabric_cli/errors/common.py Adds error message helpers for SQLDatabase creation mode/property validation.
src/fabric_cli/core/fab_constant.py Adds SQLDatabase constants for creation modes and backup retention limits.
.changes/unreleased/added-20260618-043404.yaml Records changelog entry for the new SQL db creation support.

Comment thread src/fabric_cli/utils/fab_cmd_mkdir_utils.py
Comment thread src/fabric_cli/core/fab_constant.py
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.

2 participants