Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for gaussdb (2.35 sec)

  1. tests/gaussdb_test.go

    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestGaussDBReturningIDWhichHasStringType(t *testing.T) {
    	t.Skipf("This test case skipped, because of gaussdb not support pgcrypto extension and gen_random_uuid() function")
    	if DB.Dialector.Name() != "gaussdb" {
    		t.Skip()
    	}
    
    	type Yasuo struct {
    		// TODO: function gen_random_uuid() does not exist
    		ID        string `gorm:"default:gen_random_uuid()"`
    		Name      string
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. tests/tests_test.go

    		}
    		db, err = gorm.Open(postgres.New(postgres.Config{
    			DSN:                  dbDSN,
    			PreferSimpleProtocol: true,
    		}), cfg)
    	case "gaussdb":
    		log.Println("testing gaussdb...")
    		if dbDSN == "" {
    			dbDSN = gaussdbDSN
    		}
    		db, err = gorm.Open(gaussdb.New(gaussdb.Config{
    			DSN:                  dbDSN,
    			PreferSimpleProtocol: true,
    		}), cfg)
    	case "sqlserver":
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. tests/go.mod

    	github.com/lib/pq v1.10.9
    	github.com/stretchr/testify v1.11.1
    	gorm.io/driver/gaussdb v0.1.0
    	gorm.io/driver/mysql v1.6.0
    	gorm.io/driver/postgres v1.6.0
    	gorm.io/driver/sqlite v1.6.0
    	gorm.io/driver/sqlserver v1.6.1
    	gorm.io/gorm v1.30.2
    )
    
    require (
    	filippo.io/edwards25519 v1.1.0 // indirect
    	github.com/HuaweiCloudDeveloper/gaussdb-go v1.0.0-rc1 // indirect
    	github.com/davecgh/go-spew v1.1.1 // indirect
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. tests/error_translator_test.go

    	}
    
    	db, err := OpenTestConnection(&gorm.Config{TranslateError: true})
    	if err != nil {
    		t.Fatalf("failed to connect database, got error %v", err)
    	}
    
    	dialectors := map[string]bool{"sqlite": true, "postgres": true, "gaussdb": true, "mysql": true, "sqlserver": true}
    	if supported, found := dialectors[db.Dialector.Name()]; !(found && supported) {
    		return
    	}
    
    	DB.Migrator().DropTable(&City{})
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. .github/workflows/tests.yml

      gaussdb:
        strategy:
          matrix:
            dbversion: ['opengauss/opengauss:7.0.0-RC1.B023']
            go: ['1.23', '1.24']
            platform: [ubuntu-latest] # can not run in macOS and Windows
        runs-on: ${{ matrix.platform }}
    
        services:
          gaussdb:
            image: ${{ matrix.dbversion }}
            env:
              # GaussDB has password limitations
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. tests/compose.yml

        ports:
          - "127.0.0.1:9940:4000"
        command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &
      gaussdb:
        image: 'opengauss/opengauss:7.0.0-RC1.B023'
        hostname: opengauss-server
        ports:
          - "127.0.0.1:9950:5432"
        environment:
          - TZ=Asia/Shanghai
          - GS_PASSWORD=Gaussdb@123
          - GS_CLUSTER_NAME=opengauss_cluster
          - PGDATA=/var/lib/opengauss/data
        entrypoint: ""
        command: |-
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 04 04:07:30 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. tests/tests_all.sh

    #!/bin/bash -e
    
    dialects=("sqlite" "mysql" "postgres" "gaussdb" "sqlserver" "tidb")
    
    if [[ $(pwd) == *"gorm/tests"* ]]; then
      cd ..
    fi
    
    if [ -d tests ]
    then
      cd tests
      go get -u -t ./...
      go mod download
      go mod tidy
      cd ..
    fi
    
    # SqlServer for Mac M1
    if [[ -z $GITHUB_ACTION && -d tests ]]; then
      cd tests
      if [[ $(uname -a) == *" arm64" ]]; then
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. tests/delete_test.go

    			t.Errorf("user's %v expects: %v, got %v", key, value, count)
    		}
    	}
    }
    
    // only sqlite, postgres, gaussdb, sqlserver support returning
    func TestSoftDeleteReturning(t *testing.T) {
    	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "gaussdb" && DB.Dialector.Name() != "sqlserver" {
    		return
    	}
    
    	users := []*User{
    		GetUser("delete-returning-1", Config{}),
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. tests/serializer_test.go

    }
    
    func (*SerializerPostgresStruct) TableName() string { return "serializer_structs" }
    
    func adaptorSerializerModel(s *SerializerStruct) interface{} {
    	if DB.Dialector.Name() == "postgres" || DB.Dialector.Name() == "gaussdb" {
    		sps := SerializerPostgresStruct(*s)
    		return &sps
    	}
    	return s
    }
    
    type Roles []string
    
    type Job struct {
    	Title    string
    	Number   int
    	Location string
    	IsIntern bool
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top