Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withConnectionClosingDb (0.24 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/AbstractWritableResultsStore.groovy

            }
        }
    
        protected <RESULT> RESULT withConnection(String actionName, ConnectionAction<RESULT> action) {
            return db.withConnection(actionName, action)
        }
    
        protected <RESULT> RESULT withConnectionClosingDb(String actionName, ConnectionAction<RESULT> action) {
            try {
                return db.withConnection(actionName, action)
            } finally {
                db.close()
            }
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/BaseCrossBuildResultsStore.java

            super(new PerformanceDatabase("cross_build_results"));
            this.resultType = resultType;
        }
    
        @Override
        public void report(final R results) {
            withConnectionClosingDb("write results", (ConnectionAction<Void>) connection -> {
                long executionId = insertExecution(connection, results);
                batchInsertOperation(connection, results, executionId);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/CrossVersionResultsStore.java

        public CrossVersionResultsStore(String databaseName) {
            super(new PerformanceDatabase(databaseName));
        }
    
        @Override
        public void report(final CrossVersionPerformanceResults results) {
            withConnectionClosingDb("write results", (ConnectionAction<Void>) connection -> {
                long testId = insertExecution(connection, results);
                batchInsertOperation(connection, results, testId);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top