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

KDB Command to Set Binary Values #1614

Open
sanssecours opened this Issue Oct 1, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@sanssecours
Contributor

sanssecours commented Oct 1, 2017

Proposal

Sometimes it would be nice to have a tool that stores binary data in the key data base. We could either integrate this functionality directly into kdb set or create a new tool with the name kdb setbinary, kdb setbin or a similar name. Since binary data can also contain NULL bytes I think we should probably support escape sequences to save arbitrary data. For example the command

kdb setbin user/test/binary/key '\x48\x69\x00'

or the equivalent command

kdb setbin user/test/binary/key 'Hi\x00'

could save the C ASCII string Hi(the numbers 72, 105, and 0) in the key user/test/binary/key.

@markus2330

This comment has been minimized.

Show comment
Hide comment
@markus2330

markus2330 Oct 5, 2017

Contributor

Thank you, good proposal! I would prefer the longer name set-binary (see #265) or directly integrate it into kdb set.

Contributor

markus2330 commented Oct 5, 2017

Thank you, good proposal! I would prefer the longer name set-binary (see #265) or directly integrate it into kdb set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment