Skip to content

Add visitor for bytea/BLOB types? #35

@drbawb

Description

@drbawb

A possible enhancement for inserts & updates.


When passing a Go value of type []byte to codex through Insert() or Set() it returns the error:
No visitor method for <[]uint8>. after calling ToSql()

I know the lib/pq driver for Postgres natively supports passing []bytes as a paramater for columns of type bytea, and I imagine most other databases would support this as a BLOB though I don't know how their Go driver's handle it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions