Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Scopes (0.05 sec)

  1. generics.go

    	return chainG[T]{
    		execG: execG[T]{g: &g[T]{
    			db:  c.g.db,
    			ops: append(append([]op(nil), c.g.ops...), v),
    		}},
    	}
    }
    
    func (c chainG[T]) Scopes(scopes ...func(db *Statement)) ChainInterface[T] {
    	return c.with(func(db *DB) *DB {
    		for _, fc := range scopes {
    			fc(db.Statement)
    		}
    		return db
    	})
    }
    
    func (c chainG[T]) Table(name string, args ...interface{}) ChainInterface[T] {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. statement.go

    	}
    
    	if len(stmt.Joins) > 0 {
    		newStmt.Joins = make([]join, len(stmt.Joins))
    		copy(newStmt.Joins, stmt.Joins)
    	}
    
    	if len(stmt.scopes) > 0 {
    		newStmt.scopes = make([]func(*DB) *DB, len(stmt.scopes))
    		copy(newStmt.scopes, stmt.scopes)
    	}
    
    	stmt.Settings.Range(func(k, v interface{}) bool {
    		newStmt.Settings.Store(k, v)
    		return true
    	})
    
    	return newStmt
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. tests/generics_test.go

    	filterName1 := func(stmt *gorm.Statement) {
    		stmt.Where("name = ?", "GenericsScopes1")
    	}
    
    	results, err := gorm.G[User](DB).Scopes(filterName1).Find(ctx)
    	if err != nil {
    		t.Fatalf("Scopes failed: %v", err)
    	}
    	if len(results) != 1 || results[0].Name != "GenericsScopes1" {
    		t.Fatalf("Scopes expected 1, got %d", len(results))
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    ## 0.13.0
    
    * Improve/upgrade OAuth2 scopes support with `SecurityScopes`:
        * `SecurityScopes` can be declared as a parameter like `Request`, to get the scopes of all super-dependencies/dependants.
        * Improve `Security` handling, merging scopes when declaring `SecurityScopes`.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                responseData.setMethod(Constants.HEAD_METHOD);
                return responseData;
            } catch (final ChildUrlsException e) {
                return null;
            }
        }
    
        /**
         * Copies content from an SmbFile to a File.
         * @param src The source SmbFile.
         * @param dest The destination File.
         */
        private void copy(final SmbFile src, final File dest) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    func (*parser) parseString(b []byte) string {
    	if i := bytes.IndexByte(b, 0); i >= 0 {
    		return string(b[:i])
    	}
    	return string(b)
    }
    
    // formatString copies s into b, NUL-terminating if possible.
    func (f *formatter) formatString(b []byte, s string) {
    	if len(s) > len(b) {
    		f.err = ErrFieldTooLong
    	}
    	copy(b, s)
    	if len(s) < len(b) {
    		b[len(s)] = 0
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    // See go.dev/issue/67401.
    //
    // Note that this comment is not part of the doc comment.
    //
    //go:linkname Repeat
    
    // Repeat returns a new byte slice consisting of count copies of b.
    //
    // It panics if count is negative or if the result of (len(b) * count)
    // overflows.
    func Repeat(b []byte, count int) []byte {
    	if count == 0 {
    		return []byte{}
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                responseData.setMethod(Constants.HEAD_METHOD);
                return responseData;
            } catch (final ChildUrlsException e) {
                return null;
            }
        }
    
        /**
         * Copies content from an SmbFile to a File.
         * @param src The source SmbFile.
         * @param dest The destination File.
         */
        private void copy(final SmbFile src, final File dest) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 23K bytes
    - Viewed (0)
  9. cmd/erasure-multipart.go

    	if parityDrives < 0 {
    		parityDrives = er.defaultParityCount
    	}
    
    	if globalStorageClass.AvailabilityOptimized() {
    		// If we have offline disks upgrade the number of erasure codes for this object.
    		parityOrig := parityDrives
    
    		var offlineDrives int
    		for _, disk := range onlineDisks {
    			if disk == nil || !disk.IsOnline() {
    				parityDrives++
    				offlineDrives++
    				continue
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  10. src/bufio/bufio.go

    // The complete result is equal to
    // `bytes.Join(append(fullBuffers, finalFragment), nil)`, which has a
    // length of `totalLen`. The result is structured in this way to allow callers
    // to minimize allocations and copies.
    func (b *Reader) collectFragments(delim byte) (fullBuffers [][]byte, finalFragment []byte, totalLen int, err error) {
    	var frag []byte
    	// Use ReadSlice to look for delim, accumulating full buffers.
    	for {
    		var e error
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top