146
146
class CassandraConnection(object):
149
149
self._keyspace = keyspace
151
151
self._connection = self._connect()
152
153
self.messages = self._column_family('message')
153
154
self.archive_messages = self._column_family('archive_message')
158
159
def _column_family(self, name):
161
162
def add_message(self, archive_uuid, message):
162
163
message_uuid = uuid.uuid4()