0

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?

Aleks Boev
  • 630
  • 1
  • 7
  • 16
  • Questions like this are also good candidates for the Sequel IRC channel (irc://irc.freenode.net/sequel) and [Discussion Forum](http://groups.google.com/group/sequel-talk). The author of Sequel uses PostgreSQL and knows both Sequel and PostgreSQL intimately. – the Tin Man Nov 06 '19 at 21:55

1 Answers1

1
  • 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'
    
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Aleks Boev
  • 630
  • 1
  • 7
  • 16