This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Merged
Conversation
added 3 commits
December 19, 2025 11:38
…ws, including extraction, export, and detailed metadata. Updated related classes and logging to accommodate views alongside tables.
… exclude view SQL definitions from output. Updated `CustomTextFormatter` to conditionally include view definitions based on new property.
…s for improved readability and consistency.
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| public int ObjectCount { get; init; } | ||
| public int TableCount { get; init; } | ||
| public int ViewCount { get; init; } | ||
| public int ObjectCount => TableCount + ViewCount; |
There was a problem hiding this comment.
Bug: Console message shows table+view count as table count
The ObjectCount property was changed to return TableCount + ViewCount, but the console output in Program.cs line 201 displays "Tables exported: {result.ObjectCount}". This causes the message to misleadingly report the combined table and view count while labeling it as just "Tables". The message text and the value displayed no longer match after this change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
With this feature, you can export views too. they look similar to tables in the output
Type of Change
Changes Made
Testing
Checklist
Screenshots (if applicable)
Add screenshots to help explain your changes.
Additional Notes
Add any other notes about the PR here.
Note
Adds MSSQL view extraction and formatted export (including optional SQL definitions), updates counts/logging, and introduces a CLI flag to exclude view definitions.
ExtractViewsAsyncinMsSqlSchemaExtractorusingsys.views+sys.sql_modulesfor full definitions; include view columns.Viewentity and extendDatabaseSchemawithViews.CustomTextFormatterto outputVIEWsections with columns; optionally includeDEFINITIONviaIncludeViewDefinitions.--exclude-view-definitionsoption; wire to formatter and help text.SchemaExportResultto separateTableCount/ViewCount(deriveObjectCount); adjustSchemaExportServicelogging and return values.README.mdandCHANGELOG.mdto document view support and new options.Written by Cursor Bugbot for commit fcd443f. This will update automatically on new commits. Configure here.