Skip to content

Instantly share code, notes, and snippets.

@atoulme
Created August 19, 2010 14:38
Show Gist options
  • Save atoulme/538033 to your computer and use it in GitHub Desktop.
Save atoulme/538033 to your computer and use it in GitHub Desktop.
def test_system_column_family_operations(self):
self.__set_keyspace('Keyspace1')
columnDef = dict()
columnDef['name'] = b'ValidationColumn'
columnDef['validation_class'] = 'BytesType'
#cfDef = CfDef('Keyspace1', 'NewColumnFamily', column_metadata=[cd])
cfDef = dict()
cfDef['keyspace'] = 'Keyspace1'
cfDef['name'] = 'NewColumnFamily'
cfDef['column_metadata'] = [columnDef]
self.client.request('system_add_column_family', {'cf_def' : cfDef})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment