Skip to content

Support for Blob Constant #133

tharigopl opened this Issue Jun 18, 2013 · 3 comments

3 participants


I cannot find support for the hexadecimal blob constants datatype defined by 0xX+ where hex is an hexadecimal character. Is there any generator like GUID generator. I wrote my own BlobConstant generator for my project. Just wanted to know if FluentCassandra has it.


Sure. Will complete it.

@Aaronontheweb Aaronontheweb added a commit to Aaronontheweb/fluentcassandra that referenced this issue Jan 8, 2014
@Aaronontheweb Aaronontheweb added support for blob constant when working with binary data in CQL3…
…. close #133
@Aaronontheweb Aaronontheweb closed this in #146 Jan 8, 2014

@tharigopl the code used for adding the appropriate blob constants in CQL3 can be found in the CqlHelper class. From the CqlHelperTest:

        public void EscapeBytesForCqlTest()
            var bytes = Encoding.UTF8.GetBytes("hello world");
            var expectedHex = "0x68656c6c6f20776f726c64"; //generated via the textAsBlob function in CQL3 shell

            var hex = CqlHelper.EscapeForCql(bytes);

            Assert.Equal(expectedHex, hex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.