[我知道Sequel对于字节数据具有BLOB类型,但是BLOB和bytea之间存在一些差异。是否可以将bytea直接与Sequel一起使用?
BLOB
bytea
是。续集支持Bytea:https://github.com/jeremyevans/sequel/blob/67cc4245227a6c01ecb20d0138aaf37b05a5aebc/doc/release_notes/2.2.0.txt
使用(例如,将列col_name类型从字符串更改为Bytea):set_column_type :col_name, :bytea, using: 'col_name::bytea'
col_name
set_column_type :col_name, :bytea, using: 'col_name::bytea'