- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 751 for Count (0.06 sec)
-
migrator/migrator.go
func (m Migrator) HasTable(value interface{}) bool { var count int64 m.RunWithValue(value, func(stmt *gorm.Statement) error { currentDatabase := m.DB.Migrator().CurrentDatabase() return m.DB.Raw("SELECT count(*) FROM information_schema.tables WHERE table_schema = ? AND table_name = ? AND table_type = ?", currentDatabase, stmt.Table, "BASE TABLE").Row().Scan(&count) }) return count > 0 }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Jun 06 02:35:01 UTC 2025 - 29.5K bytes - Viewed (0) -
tests/query_test.go
} if totalBatch != 6 { t.Errorf("incorrect total batch, expects: %v, got %v", 6, totalBatch) } var count int64 DB.Model(&User{}).Where("name = ?", "find_in_batches_new").Count(&count) if count != 6 { t.Errorf("incorrect count after update, expects: %v, got %v", 6, count) } } func TestFindInBatchesWithOffsetLimit(t *testing.T) { users := []User{Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Jul 22 06:21:04 UTC 2025 - 51K bytes - Viewed (0) -
src/archive/zip/writer.go
// existing file, such as a binary executable. // It must be called before any data is written. func (w *Writer) SetOffset(n int64) { if w.cw.count != 0 { panic("zip: SetOffset called after data was written") } w.cw.count = n } // Flush flushes any buffered data to the underlying writer. // Calling Flush is not normally necessary; calling Close is sufficient. func (w *Writer) Flush() error {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/pager/FileAuthPager.java
* Gets the total number of records in the result set. * * @return the total record count */ public int getAllRecordCount() { return allRecordCount; } /** * Sets the total number of records in the result set. * * @param allRecordCount the total record count */ public void setAllRecordCount(final int allRecordCount) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
shareInfo2.type = 1; shareInfo2.remark = "Remark for Share2"; // Create ShareInfoCtr1 with the shares srvsvc.ShareInfoCtr1 shareInfoCtr1 = new srvsvc.ShareInfoCtr1(); shareInfoCtr1.count = 2; shareInfoCtr1.array = new srvsvc.ShareInfo1[] { shareInfo1, shareInfo2 }; // Inject the ShareInfoCtr1 using reflection Field infoField = srvsvc.ShareEnumAll.class.getDeclaredField("info");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/pager/ReqHeaderPager.java
* Gets the total number of records in the result set. * * @return the total record count */ public int getAllRecordCount() { return allRecordCount; } /** * Sets the total number of records in the result set. * * @param allRecordCount the total record count to set */ public void setAllRecordCount(final int allRecordCount) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 7.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
counters.add(listener); assertEquals(expected.count(listener), counters.count(listener)); } @Override public String toString() { return "incrementing"; } }; } private static <T> ImmutableMultiset<T> multiset(T value, int count) { return multiset(ImmutableMap.of(value, count)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java
counters.add(listener); assertEquals(expected.count(listener), counters.count(listener)); } @Override public String toString() { return "incrementing"; } }; } private static <T> ImmutableMultiset<T> multiset(T value, int count) { return multiset(ImmutableMap.of(value, count)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java
baseDir = tempDir; // Count expired files int count = 0; File[] dirs = baseDir.listFiles(); if (dirs != null) { for (File dir : dirs) { if (dir.isDirectory() && dir.getName().startsWith("_")) { count++; } } }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 18.7K bytes - Viewed (0) -
cmd/bucket-targets.go
updateInProgress: true, count: v.count + 1, bucket: bucket, } } } func (sys *BucketTargetSys) markRefreshDone(bucket, arn string) { sys.aMutex.Lock() defer sys.aMutex.Unlock() if v, ok := sys.arnErrsMap[arn]; ok { sys.arnErrsMap[arn] = arnErrs{ updateInProgress: false, count: v.count, bucket: bucket, } } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 20.9K bytes - Viewed (0)