- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for GORM_DSN (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
.github/workflows/tests.yml
uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }} - name: Tests run: GITHUB_ACTION=true GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True" ./tests/tests_all.sh mariadb: strategy: matrix: dbversion: [ 'mariadb:latest' ] go: ['1.24', '1.25']Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 8.9K bytes - Click Count (0) -
tests/tests_test.go
log.Printf("failed to ping sqlDB, got error %v", err) os.Exit(1) } RunMigrations() } } func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) { dbDSN := os.Getenv("GORM_DSN") switch os.Getenv("GORM_DIALECT") { case "mysql": log.Println("testing mysql...") if dbDSN == "" { dbDSN = mysqlDSN } db, err = gorm.Open(mysql.Open(dbDSN), cfg) case "postgres":
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 3.7K bytes - Click Count (0)