feat: Add support for more PostgreSQL data types#19
Merged
Conversation
This commit adds support for several new PostgreSQL data types to the pgtalk library. The following data types are now supported: - money - xml - real - smallint - time without time zone - character - line - lseg - box - path - polygon - circle - cidr - inet - macaddr - bit - bit varying This change includes: - New mappings in `cmd/pgtalk-gen/mapping.go`. - A new accessor for `smallint` in `access_int16.go`. - New conversion functions in `convert/convert.go`. - A new test table `new_types` in `test/main_test.go` to test the new data types. - The generated code for the new test table. - Removal of an obsolete `mapping.json` file from the test directory.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This commit adds support for several new PostgreSQL data types to the pgtalk library.
The following data types are now supported:
This change includes:
cmd/pgtalk-gen/mapping.go.smallintinaccess_int16.go.convert/convert.go.new_typesintest/main_test.goto test the new data types.mapping.jsonfile from the test directory.