< Prev: ENUM
Up: Column Types

Column Types: BYTEA, BLOB

The sq representation of BYTEA, BLOB is the BinaryField. You can convert a byte slice []byte into a BinaryField:
func Bytes(b []byte) BinaryField
Here are the available Predicate operations on a BinaryField:
func (f BinaryField) IsNull() Predicate    // f IS NULL
func (f BinaryField) IsNotNull() Predicate // f IS NOT NULL
< Prev: ENUM
Up: Column Types