- Sort Score
- Num 10 results
- Language All
Results 551 - 560 of 782 for section (0.04 seconds)
-
tests/scopes_test.go
} db := DB.Scopes(func(tx *gorm.DB) *gorm.DB { return tx.Table("custom_table") }).Session(&gorm.Session{}) db.AutoMigrate(&User{}) if db.Find(&User{}).Statement.Table != "custom_table" { t.Errorf("failed to call Scopes") } result := DB.Scopes(NameIn1And2, func(tx *gorm.DB) *gorm.DB { return tx.Session(&gorm.Session{}) }).Find(&users1) if result.RowsAffected != 2 {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Jan 12 08:42:21 GMT 2024 - 3.3K bytes - Click Count (0) -
docs/sts/assume-role.go
if sessionPolicyFile != "" { var policy string if f, err := os.Open(sessionPolicyFile); err != nil { log.Fatalf("Unable to open session policy file: %v", err) } else { defer f.Close() bs, err := io.ReadAll(f) if err != nil { log.Fatalf("Error reading session policy file: %v", err) } policy = string(bs) } stsOpts.Policy = policy } if expiryDuration != 0 {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Aug 17 01:24:54 GMT 2024 - 4.4K bytes - Click Count (1) -
impl/maven-core/src/test/java/org/apache/maven/MavenTestHelper.java
MavenSession mavenSession = new MavenSession(repoSession, request, new DefaultMavenExecutionResult()); DefaultSession session = new DefaultSession(mavenSession, null, null, repositorySystem, new DefaultLookup(container), null); InternalSession.associate(repoSession, session); return repoSession; }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 20:01:00 GMT 2025 - 2.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java
/** * Gets the type of the event. * * @return The type of the event, never {@code null}. */ Type getType(); /** * Gets the session from which this event originates. * * @return The current session, never {@code null}. */ MavenSession getSession(); /** * Gets the current project (if any). *Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Nov 29 20:53:26 GMT 2024 - 2.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/MavenScopeDependenciesValidator.java
MavenScopeDependenciesValidator(PluginValidationManager pluginValidationManager) { super(pluginValidationManager); } @Override protected void doValidate( RepositorySystemSession session, Artifact pluginArtifact, ArtifactDescriptorResult artifactDescriptorResult) { Set<String> mavenArtifacts = artifactDescriptorResult.getDependencies().stream()
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.9K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/LocalSnapshotMetadataGenerator.java
private final Map<Object, LocalSnapshotMetadata> snapshots; private final Date timestamp; LocalSnapshotMetadataGenerator(RepositorySystemSession session, InstallRequest request) { timestamp = (Date) ConfigUtils.getObject(session, new Date(), "maven.startTime"); snapshots = new LinkedHashMap<>(); } @OverrideCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.8K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java
.setLocalRepository(getLocalRepository()); DefaultRepositorySystemSession session = new DefaultRepositorySystemSession(); LocalRepository localRepo = new LocalRepository(request.getLocalRepository().getBasedir()); session.setLocalRepositoryManager(new SimpleLocalRepositoryManagerFactory().newInstance(session, localRepo)); LegacySupport legacySupport = container.lookup(LegacySupport.class);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 11.1K bytes - Click Count (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
.sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!) .hostnameVerifier { hostname, session -> val s = "hostname: $hostname peerHost:${session.peerHost}" Log.d("SniOverrideTest", s) try { val cert = session.peerCertificates[0] as X509Certificate for (name in cert.subjectAlternativeNames) { if (name[0] as Int == 2) {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.6K bytes - Click Count (0) -
callbacks/callmethod.go
package callbacks import ( "reflect" "gorm.io/gorm" ) func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) { tx := db.Session(&gorm.Session{NewDB: true}) if called := fc(db.Statement.ReflectValue.Interface(), tx); !called { switch db.Statement.ReflectValue.Kind() { case reflect.Slice, reflect.Array: db.Statement.CurDestIndex = 0 for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Feb 18 01:20:29 GMT 2023 - 846 bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
call: Call, connection: Connection, ) { if (random != null) { val sslSocket = connection.socket() as SSLSocket val session = sslSocket.session val masterSecretHex = session.masterSecret ?.encoded ?.toByteString() ?.hex() if (masterSecretHex != null) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 10.9K bytes - Click Count (0)