Esempio n. 1
0
        public async Task TestCreateTables()
        {
            var dao = new FlattenedDocumentCassandraDao();
            await dao.EstablishConnectionAsync();

            await dao.CreateFlattenedDocumentTablesAsync();
        }
Esempio n. 2
0
 public async Task EstablishSessionAsync()
 {
     if (ResilientSession == null)
     {
         var rs = new FlattenedDocumentCassandraDao();
         await rs.EstablishConnectionAsync();
         ResilientSession = rs;
     }
 }
Esempio n. 3
0
        private async Task CreateAndTruncateTables()
        {
            var dao = new FlattenedDocumentCassandraDao();
            await dao.EstablishConnectionAsync();

            await dao.CreateFlattenedDocumentTablesAsync();

            await dao.TruncateTablesAsync();
        }
Esempio n. 4
0
        public async Task TestTruncateTables()
        {
            var dao = new FlattenedDocumentCassandraDao();
            await dao.EstablishConnectionAsync();

            // create Tables, in case they don't exist
            await dao.CreateFlattenedDocumentTablesAsync();

            await dao.TruncateTablesAsync();
        }