Exemplo n.º 1
0
 private void WaitIndexesOnline(GraphDatabaseService database)
 {
     using (Transaction ignored = database.BeginTx())
     {
         database.Schema().awaitIndexesOnline(5, TimeUnit.MINUTES);
     }
 }
Exemplo n.º 2
0
 private static void AwaitIndex(GraphDatabaseService database)
 {
     using (Transaction tx = database.BeginTx())
     {
         database.Schema().awaitIndexesOnline(2, TimeUnit.MINUTES);
         tx.Success();
     }
 }
Exemplo n.º 3
0
 private void CreateConstraint(GraphDatabaseService database)
 {
     using (Transaction transaction = database.BeginTx())
     {
         Schema schema = database.Schema();
         Schema.constraintFor(_constraintIndexLabel).assertPropertyIsUnique(UNIQUE_PROPERTY_NAME).create();
         transaction.Success();
     }
 }