Skip to content

Add missing postgres types mapping / decoders / parser #446

Open
@bombillazo

Description

@bombillazo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions