Skip to content

feat: support more data types#15

Merged
leiysky merged 3 commits intofast:mainfrom
leiysky:feat/data-types
Jan 31, 2026
Merged

feat: support more data types#15
leiysky merged 3 commits intofast:mainfrom
leiysky:feat/data-types

Conversation

@leiysky
Copy link
Contributor

@leiysky leiysky commented Jan 31, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for additional PostgreSQL data types to the query builder library. The changes extend the column type system with new types for character data, binary data, numeric types, serial types, range types, and arrays.

Changes:

  • Added new column type variants and builder methods for char, varchar, bytea, numeric, serial types (smallserial, serial, bigserial), range types (int4range, int8range, numrange, tsrange, tstzrange, daterange), and array support
  • Added a panic check in the default() method to prevent setting default values on generated columns
  • Added new test file for Iden escaping and qualified name rendering

Reviewed changes

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

File Description
pqb/src/table/column.rs Adds new column type builder methods, enum variants, and SQL rendering logic for additional PostgreSQL data types; includes mutual exclusion check for default and generated columns
pqb/tests/types.rs New test file for Iden identifier escaping detection and qualified table name rendering (unrelated to column types)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leiysky leiysky enabled auto-merge (squash) January 31, 2026 15:04
@leiysky leiysky merged commit de6ec41 into fast:main Jan 31, 2026
9 checks passed
@leiysky leiysky deleted the feat/data-types branch January 31, 2026 15:05
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

Comments