-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for null column comments and improve schema generation er…
…ror handling - Extend the Column model by adding a new field `isCommentNull` to indicate when a column comment is intended to be null. - Update the JSON schema output in the `toSchema` proc to include the `isCommentNull` flag. - Overload the `comment` proc to handle a nil argument by setting `isCommentNull` to true. - Introduce new PostgreSQL query procs (`addCommentColumn` and `addNullCommentColumn`) to generate appropriate COMMENT queries based on whether a comment is provided or set to null. - Modify add and change column query functions to conditionally include comment queries using `commentContent` and `isCommentNull`. - Enhance schema generation in both PostgreSQL and SQLite by accepting a configurable schema file path (defaulting to the current directory) and adding robust error handling. - Update tests to verify the new behavior for column comments and schema generation.
- Loading branch information
1 parent
c8e7fe1
commit ea2de49
Showing
10 changed files
with
165 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.