Skip to content

Document mapping between postgres (oid) and golang types #404

@hnsl

Description

@hnsl

Right now I had to read (uncommented) source code for example to understand that null values when scanned/read will map to a golang nil value. This is not an obvious choice. A design where you had chosen to map the null value to a corresponding NullTime, NullInt64 etc with Valid = false (preserving the oid type information) would have been just as likely from my perspective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions