Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,100 for modes (0.02 sec)

  1. tests/serializer_test.go

    import (
    	"bytes"
    	"context"
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/schema"
    	. "gorm.io/gorm/utils/tests"
    )
    
    type SerializerStruct struct {
    	gorm.Model
    	Name                   []byte                 `gorm:"json"`
    	Roles                  Roles                  `gorm:"serializer:json"`
    	Roles2                 *Roles                 `gorm:"serializer:json"`
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. tests/associations_many2many_test.go

    	// Find
    	var user2 User
    	DB.Find(&user2, "id = ?", user.ID)
    	DB.Model(&user2).Association("Languages").Find(&user2.Languages)
    
    	CheckUser(t, user2, user)
    
    	// Count
    	AssertAssociationCount(t, user, "Languages", 2, "")
    
    	// Append
    	language := Language{Code: "language-many2many-append", Name: "language-many2many-append"}
    	DB.Create(&language)
    
    	if err := DB.Model(&user2).Association("Languages").Append(&language); err != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sat Jun 10 13:05:19 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java

    import java.nio.file.Path;
    
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * Represents a source for loading Maven Project Object Model (POM) files. This interface
     * extends the basic {@link Source} interface with specific functionality for handling
     * Maven POM files and resolving related project POMs.
     *
     * <p>The interface provides two types of sources:</p>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 29 09:46:53 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. schema/relationship_test.go

    	} else {
    		for _, rel := range relations {
    			checkSchemaRelation(t, s, rel)
    		}
    	}
    }
    
    func TestBelongsToOverrideForeignKey(t *testing.T) {
    	type Profile struct {
    		gorm.Model
    		Name string
    	}
    
    	type User struct {
    		gorm.Model
    		Profile      Profile `gorm:"ForeignKey:ProfileRefer"`
    		ProfileRefer int
    	}
    
    	checkStructRelation(t, &User{}, Relation{
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt

            checkCleanM2AndAndroidUserHome(os, buildType)
        }
    
        applyDefaultDependencies(model, buildType)
    }
    
    fun applyDefaultDependencies(
        model: CIBuildModel,
        buildType: BuildType,
    ) {
        if (buildType !is CompileAll) {
            buildType.dependencies {
                compileAllDependency(CompileAll.buildTypeId(model))
            }
        }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Jun 11 12:58:05 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. docs/bucket/retention/README.md

    ```sh
    awscli s3api put-object-lock-configuration --bucket mybucket --object-lock-configuration 'ObjectLockEnabled=\"Enabled\",Rule={DefaultRetention={Mode=\"GOVERNANCE\",Days=1}}'
    ```
    
    ### Set object lock
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/configurations/GitHubMergeQueueCheckPass.kt

    import jetbrains.buildServer.configs.kotlin.triggers.vcs
    import model.CIBuildModel
    import model.StageName
    
    class GitHubMergeQueueCheckPass(
        model: CIBuildModel,
    ) : BaseGradleBuildType(init = {
            id("${model.projectId}_GitHubMergeQueueCheckPass")
            uuid = "${DslContext.uuidPrefix}_${model.projectId}_GitHubMergeQueueCheckPass"
            name = "GitHub Merge Queue Check Pass"
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

        @Override
        public ToolchainPrivate createToolchain(ToolchainModel model) throws MisconfiguredToolchainException {
            if (model == null) {
                return null;
            }
    
            // use DefaultJavaToolChain for compatibility with maven 3.2.3 and earlier
    
            @SuppressWarnings("deprecation")
            JavaToolchainImpl jtc = new DefaultJavaToolChain(model, logger);
    
            // populate the provides section
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. tests/scanner_valuer_test.go

    	if err := DB.Create(&data).Error; err != nil {
    		t.Errorf("Should got no error when creating data, but got %v", err)
    	}
    
    	if err := DB.Model(&data).Update("password", EncryptedData("xnewpass")).Error; err == nil {
    		t.Errorf("Should failed to update data with invalid data")
    	}
    
    	if err := DB.Model(&data).Update("password", EncryptedData("newpass")).Error; err != nil {
    		t.Errorf("Should got no error update data with valid data, but got %v", err)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. docs/uk/docs/tutorial/encoder.md

    Тим самим способом ця база даних не прийматиме об'єкт типу Pydantic model (об'єкт з атрибутами), а лише `dict`.
    
    Ви можете використовувати `jsonable_encoder` для цього.
    
    Вона приймає об'єкт, такий як Pydantic model, і повертає його версію, сумісну з JSON:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    У цьому прикладі вона конвертує Pydantic model у `dict`, а `datetime` у `str`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top