Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for Unscoped (0.09 seconds)

  1. tests/helper_test.go

    		return currentMajor > major
    	}
    
    	return currentMinor >= minor
    }
    
    func isSqlite() bool {
    	return os.Getenv("GORM_DIALECT") == "sqlite"
    }
    
    func db(unscoped bool) *gorm.DB {
    	if unscoped {
    		return DB.Unscoped()
    	} else {
    		return DB
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  2. tests/chainable_api_test.go

    	tx = tx.Scopes(func(d *gorm.DB) *gorm.DB { return d.Where("status = ?", "ok") })
    	if tx == nil {
    		t.Fatalf("Scopes returned nil")
    	}
    
    	// Unscoped
    	tx = tx.Unscoped()
    	if !tx.Statement.Unscoped {
    		t.Fatalf("Unscoped expected to be true")
    	}
    
    	// Raw
    	tx = tx.Raw("SELECT ? as x", 1)
    	if tx.Statement.SQL.Len() == 0 {
    		t.Fatalf("Raw SQL expected to be built")
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Jan 31 08:39:40 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  3. gorm.go

    				Clauses:   map[string]clause.Clause{},
    				Vars:      make([]interface{}, 0, 8),
    				SkipHooks: db.Statement.SkipHooks,
    			}
    			if db.Config.PropagateUnscoped {
    				tx.Statement.Unscoped = db.Statement.Unscoped
    			}
    		} else {
    			// with clone statement
    			tx.Statement = db.Statement.clone()
    			tx.Statement.DB = tx
    		}
    
    		return tx
    	}
    
    	return db
    }
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  4. generics.go

    					selectExpr.Exprs = append(selectExpr.Exprs, clause.Expr{SQL: sql + " AS ?", Vars: vars})
    
    					q.db.Clauses(clause.Select{Expression: selectExpr})
    
    					return q.db.Session(&Session{NewDB: true}).Unscoped().Table("(?) t", q.db).Where("? <= ?", rnnColumn, q.limitPerRecord)
    				}
    			}
    
    			return q.db
    		})
    	})
    }
    
    func (c chainG[T]) Delete(ctx context.Context) (rowsAffected int, err error) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 26K bytes
    - Click Count (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            resolutionErrorHandler.throwErrors(request, result);
            assertEquals(2, result.getArtifacts().size());
    
            //
            // System scoped version which should
            //
            d.setScope(Artifact.SCOPE_SYSTEM);
            File file = new File(getBasedir(), "src/test/repository-system/maven-core-2.1.0.jar");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  6. api/maven-api-di/src/main/java/org/apache/maven/api/di/package-info.java

     * managed and injected throughout Maven's execution lifecycle. The framework is designed
     * to be lightweight yet powerful, supporting various scopes of object lifecycle from
     * singleton instances to mojo-execution-scoped beans.
     * <p>
     * Key features include:
     * <ul>
     *   <li>Constructor, method, and field injection</li>
     *   <li>Qualifiers for distinguishing between beans of the same type</li>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Jan 10 05:49:06 GMT 2026
    - 1.7K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            // 2) Repository system session-scoped workspace reader (contains ide and exec request reader)
            for (WorkspaceReader repoWorkspaceReader : chainedWorkspaceReader.getReaders()) {
                if (repoWorkspaceReader != null && repoWorkspaceReader != reactorReader) {
                    workspaceReaders.add(repoWorkspaceReader);
                }
            }
            // 3) .. n) Project-scoped workspace readers
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 29 10:43:38 GMT 2025
    - 28.8K bytes
    - Click Count (1)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/package-info.java

     * It maintains the state of a Maven execution and provides access to all core services and components.
     * Sessions are thread-safe and can be obtained in session-scoped components using the
     * {@link org.apache.maven.api.di.SessionScoped} annotation.</p>
     *
     * <p>Key capabilities provided through the Session include:</p>
     * <ul>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:13:42 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  9. .teamcity/subprojects.json

        "path": "platforms/jvm/scaladoc-worker",
        "unitTests": false,
        "functionalTests": false,
        "crossVersionTests": false
      },
      {
        "name": "scoped-persistent-cache",
        "path": "platforms/core-execution/scoped-persistent-cache",
        "unitTests": false,
        "functionalTests": false,
        "crossVersionTests": false
      },
      {
        "name": "security",
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 27 15:03:00 GMT 2026
    - 42K bytes
    - Click Count (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        get() = countingSource.bytesRead - source.buffer.size
    
      /** How many bytes to read before [peekHeader] should return false, or -1L for no limit. */
      private var limit = -1L
    
      /** Type hints scoped to the call stack, manipulated with [withTypeHint]. */
      private val typeHintStack = mutableListOf<Any?>()
    
      /**
       * The type hint for the current object. Used to pick adapters based on other fields, such as
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.5K bytes
    - Click Count (0)
Back to Top