Aleks Boev
Aleks Boev

Reputation: 720

is there a special Postgresql Bytea data type in Sequel?

I know that Sequel have BLOB type for byte data, but there is some difference between BLOB and bytea. Is it possible to use bytea directly with Sequel?

Upvotes: 0

Views: 190

Answers (1)

Aleks Boev
Aleks Boev

Reputation: 720

  • Yes. Bytea is supported in Sequel: See "The 2.2.0 release_notes.

  • You can change the column col_name type from String to Bytea using:

    set_column_type :col_name, :bytea, using: 'col_name::bytea'
    

Upvotes: 1

Related Questions