- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for gaussdb (1.17 sec)
-
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) -
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) -
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) -
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) -
.github/workflows/tests.yml
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 8.9K bytes - Viewed (0) -
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) -
tests/multi_primary_keys_test.go
} if name := DB.Dialector.Name(); name == "postgres" { t.Skip("skip postgres due to it only allow unique constraint matching given keys") } if name := DB.Dialector.Name(); name == "gaussdb" { t.Skip("skip gaussdb due to it only allow unique constraint matching given keys") } DB.Migrator().DropTable(&Blog{}, &Tag{}, "blog_tags", "locale_blog_tags", "shared_blog_tags")
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 13.1K bytes - Viewed (0) -
tests/table_test.go
} }) } func TestGaussDBTableWithIdentifierLength(t *testing.T) { if DB.Dialector.Name() != "gaussdb" { return } type LongString struct { ThisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString string `gorm:"unique"` } t.Run("default", func(t *testing.T) { db, _ := gorm.Open(gaussdb.Open(gaussdbDSN), &gorm.Config{}) user, err := schema.Parse(&LongString{}, &sync.Map{}, db.Config.NamingStrategy)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 12.7K bytes - Viewed (0) -
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) -
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)