Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing postgres types mapping / decoders / parser #446

Open
Tracked by #364
bombillazo opened this issue Feb 5, 2024 · 0 comments
Open
Tracked by #364

Add missing postgres types mapping / decoders / parser #446

bombillazo opened this issue Feb 5, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bombillazo
Copy link
Collaborator

bombillazo commented Feb 5, 2024

Is your feature request related to a problem? Please describe.

Data returned by the driver is serialized in a string by default. Semantically, some DB types (like cidr, macaddress, text) can stay as strings. However, other data can be represented by a native JS type or a JS data object representing the database value in JS land.

The following is a list of Postgres database type oids, with the unmarked ones indicating a decoder is not yet implemented by deno-postgres. Any unimplemented oid type is returned untouched as a string.

source

Describe the solution you'd like

Implement the missing type Oid parsers. node-pg-types can be used as inspiration for some of the type parsers.

Range types issue is discussed here: #61

If there is an error with the list, like a missing type or a type marked as implemented but not returning the correct JS type, please notify us so it can be updated.

Describe alternatives you've considered

N/A

Additional context

Related issues: #184

@bombillazo bombillazo changed the title PG types mapping / decoders postgres types mapping / decoders / parser Feb 5, 2024
@bombillazo bombillazo added enhancement New feature or request help wanted Extra attention is needed labels Feb 5, 2024
@bombillazo bombillazo self-assigned this Feb 5, 2024
@bombillazo bombillazo changed the title postgres types mapping / decoders / parser Add missing postgres types mapping / decoders / parser Feb 5, 2024
@bombillazo bombillazo removed their assignment Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant