Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 734 for commit (0.23 sec)

  1. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            // Commit
            callback.commit();
    
            assertEquals(1, commitCount.get());
            assertEquals(3L, documentsBeforeCommit.get());
    
            // Store more and commit again
            callback.store(params, data);
            callback.store(params, data);
    
            assertEquals(5L, callback.getDocumentSize());
    
            callback.commit();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. tests/transaction_test.go

    	user := User{Name: "transaction"}
    	if err := tx.Save(&user).Error; err != nil {
    		t.Fatalf("No error should raise")
    	}
    
    	if err := tx.Commit().Error; err != nil {
    		t.Fatalf("Commit should not raise error")
    	}
    
    	if err := tx.Rollback().Error; err == nil {
    		t.Fatalf("Rollback after commit should raise error")
    	}
    }
    
    func TestTransactionWithSavePoint(t *testing.T) {
    	tx := DB.Begin()
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

                    doc2.put("id", "2");
                    doc2.put("title", "Document 2");
                    callback.store(initParamMap, doc2);
    
                    // Commit the changes
                    callback.commit();
                }
    
                @Override
                public void stop() {
                    // Do nothing
                }
            };
    
            DataConfig config = new DataConfig();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            // Execute commit
            indexUpdateCallback.commit();
    
            // Verify documents were sent
            assertEquals(1, indexingHelper.sendDocumentsCalled);
            assertEquals(0, indexUpdateCallback.docList.size());
        }
    
        public void test_commit_withEmptyCache() {
            // Execute commit with no documents
            indexUpdateCallback.commit();
    
            // Verify no indexing happened
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            ProtwordsItem item = new ProtwordsItem(0, "newCommitItem");
    
            ProtwordsFile.ProtwordsUpdater updater = protwordsFile.new ProtwordsUpdater(item);
    
            // Commit the item
            ProtwordsItem result = updater.commit();
    
            assertNotNull(result);
            assertEquals("newCommitItem", result.getInput());
    
            updater.close();
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  6. finisher_api.go

    	}
    
    	if err != nil {
    		tx.AddError(err)
    	}
    
    	return tx
    }
    
    // Commit commits the changes in a transaction
    func (db *DB) Commit() *DB {
    	if committer, ok := db.Statement.ConnPool.(TxCommitter); ok && committer != nil && !reflect.ValueOf(committer).IsNil() {
    		db.AddError(committer.Commit())
    	} else {
    		db.AddError(ErrInvalidTransaction)
    	}
    	return db
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

                }
            }
    
            /**
             * Commits the current item to the temporary file.
             * @return the committed item or null if no item to commit
             */
            public ProtwordsItem commit() {
                isCommit = true;
                if (item != null && item.isUpdated()) {
                    try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

            }
    
            /**
             * Commits the changes to the dictionary file.
             * If there is a pending new item, it is written to the file.
             *
             * @return The committed item, or null if no item was committed.
             * @throws DictionaryException if an I/O error occurs.
             */
            public StopwordsItem commit() {
                isCommit = true;
                if (item != null && item.isUpdated()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

                }
            }
    
            /**
             * Commits any pending changes and marks the updater for final write.
             *
             * @return the committed mapping item, or null if no item was pending
             */
            public CharMappingItem commit() {
                isCommit = true;
                if (item != null && item.isUpdated()) {
                    try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

            }
    
            /**
             * Commits the changes to the dictionary file.
             * If there is a pending new item, it is written to the file.
             *
             * @return The committed item, or null if no item was committed.
             * @throws DictionaryException if an I/O error occurs.
             */
            public StemmerOverrideItem commit() {
                isCommit = true;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top