Skip to content

Allow any type to be written as binary #4052

Description

@roji

#2756 allowed reading any type as binary via NpgsqlDataReader.GetStream. We can do the same for the writing side, i.e. allow byte[] or Stream to be set as the NpgsqlParameter.Value of any PG type. This can be useful for some pass-through scenarios where a program reads PG data from one database and writes it to another, without caring about the contents (or needing to support the type).

See #4046 (comment) for an example.

Consider doing together with #4053, which is the same for text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions