Skip to content

GORM Playground (Please Create PR for this project to report issues)

Notifications You must be signed in to change notification settings

pkpfr/playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GORM PlayGround

GORM PlayGround can be used to play GORM and reports issues

test status

Usage

Modify https://github.com/go-gorm/playground/edit/master/main_test.go and create pull report, your code will run with SQLite, MySQL, Postgres and SQL server with the help of Github Action

If you encounter a bug in GORM, please report it at https://github.com/go-gorm/gorm/issues with the PlayGround Pull Request's link

We are using the following configuration run your code (GORM's latest master branch, database drivers: sqlite, mysql, postgres, sqlserver), you could change it in the above link

// GORM_REPO: https://github.com/go-gorm/gorm.git
// GORM_BRANCH: master
// TEST_DRIVERS: sqlite, mysql, postgres, sqlserver

BTW, we have prepared some structs with relationships in https://github.com/go-gorm/playground/blob/master/models.go that you may be interested to use

Run Locally

// Setup Databases
docker-compose up

// Run tests with cached GORM and latest drivers
GORM_ENABLE_CACHE=true ./test.sh

// Run tests with latest GORM specified with GORM_REPO, GORM_BRANCH and latest drivers
./test.sh

Happy Hacking!

About

GORM Playground (Please Create PR for this project to report issues)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 84.4%
  • Shell 15.6%