Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What type to use for binary fields? #85

Open
behrangsa opened this issue Jan 19, 2012 · 1 comment
Open

What type to use for binary fields? #85

behrangsa opened this issue Jan 19, 2012 · 1 comment

Comments

@behrangsa
Copy link

As I couldn't find a forum or mailing list for the project I am asking this question here.

What column type should be used for binary data? Is there an example showing how binary data should be handled? I couldn't find anything in the project's rspec examples.

@vincentp
Copy link
Member

Hi, all string are encoded into binary automatically as thrift is transporting the data using that format, you can have a look at the cell file to see how it works:
https://github.com/CompanyBook/massive_record/blob/develop/lib/massive_record/wrapper/cell.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants