Skip to content

feat: Add support for more PostgreSQL data types#19

Merged
emicklei merged 1 commit into
mainfrom
add-new-datatypes
Aug 21, 2025
Merged

feat: Add support for more PostgreSQL data types#19
emicklei merged 1 commit into
mainfrom
add-new-datatypes

Conversation

@emicklei
Copy link
Copy Markdown
Owner

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 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.
@emicklei emicklei merged commit 63738f3 into main Aug 21, 2025
1 check passed
@emicklei emicklei deleted the add-new-datatypes branch August 29, 2025 13:13
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.

1 participant