Esempio n. 1
0
        protected override void Setup()
        {
            base.Setup();

            if (!Keyspace.ColumnFamilyExists(Server, FamilyName))
            {
                Keyspace.AddColumnFamily(Server, new CfDef {
                    Name            = FamilyName,
                    Keyspace        = KeyspaceName,
                    Column_type     = "Standard",
                    Comparator_type = "AsciiType",
                    Comment         = "Holds the blog posts"
                });
            }

            _family = Database.GetColumnFamily <AsciiType>(FamilyName);
        }
Esempio n. 2
0
 public bool ColumnFamilyExists(string columnFamily)
 {
     return(Keyspace.ColumnFamilyExists(columnFamily));
 }