From 88867e24163b5ff176646912d72cb21cc5f048f0 Mon Sep 17 00:00:00 2001 From: Daniel Sullivan Date: Wed, 18 Sep 2019 19:21:15 +0900 Subject: [PATCH] Repath --- .github/ISSUE_TEMPLATE.md | 14 +++++++------- .idea/gorm.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ README.md | 6 +++--- association_test.go | 2 +- callbacks_test.go | 2 +- customize_column_test.go | 2 +- dialects/mssql/mssql.go | 2 +- errors_test.go | 2 +- field_test.go | 2 +- join_table_test.go | 2 +- main.go | 8 ++++---- main_test.go | 10 +++++----- migration_test.go | 2 +- naming_test.go | 2 +- preload_test.go | 2 +- query_test.go | 2 +- scaner_test.go | 2 +- scope_test.go | 2 +- update_test.go | 2 +- 22 files changed, 62 insertions(+), 33 deletions(-) create mode 100644 .idea/gorm.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index a0b64bfa..733b7fe5 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,4 +1,4 @@ -Your issue may already be reported! Please search on the [issue track](https://github.com/jinzhu/gorm/issues) before creating one. +Your issue may already be reported! Please search on the [issue track](https://github.com/charm-jp/gorm/issues) before creating one. ### What version of Go are you using (`go version`)? @@ -8,17 +8,17 @@ Your issue may already be reported! Please search on the [issue track](https://g ### Please provide a complete runnable program to reproduce your issue. **IMPORTANT** -Need to runnable with [GORM's docker compose config](https://github.com/jinzhu/gorm/blob/master/docker-compose.yml) or please provides your config. +Need to runnable with [GORM's docker compose config](https://github.com/charm-jp/gorm/blob/master/docker-compose.yml) or please provides your config. ```go package main import ( - "github.com/jinzhu/gorm" - _ "github.com/jinzhu/gorm/dialects/mssql" - _ "github.com/jinzhu/gorm/dialects/mysql" - _ "github.com/jinzhu/gorm/dialects/postgres" - _ "github.com/jinzhu/gorm/dialects/sqlite" + "github.com/charm-jp/gorm" + _ "github.com/charm-jp/gorm/dialects/mssql" + _ "github.com/charm-jp/gorm/dialects/mysql" + _ "github.com/charm-jp/gorm/dialects/postgres" + _ "github.com/charm-jp/gorm/dialects/sqlite" ) var db *gorm.DB diff --git a/.idea/gorm.iml b/.idea/gorm.iml new file mode 100644 index 00000000..5e764c4f --- /dev/null +++ b/.idea/gorm.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..28a804d8 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..1ff239ec --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 6d231103..caa8d6b9 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ The fantastic ORM library for Golang, aims to be developer friendly. -[![go report card](https://goreportcard.com/badge/github.com/jinzhu/gorm "go report card")](https://goreportcard.com/report/github.com/jinzhu/gorm) +[![go report card](https://goreportcard.com/badge/github.com/charm-jp/gorm "go report card")](https://goreportcard.com/report/github.com/charm-jp/gorm) [![wercker status](https://app.wercker.com/status/8596cace912c9947dd9c8542ecc8cb8b/s/master "wercker status")](https://app.wercker.com/project/byKey/8596cace912c9947dd9c8542ecc8cb8b) [![codecov](https://codecov.io/gh/jinzhu/gorm/branch/master/graph/badge.svg)](https://codecov.io/gh/jinzhu/gorm) [![Join the chat at https://gitter.im/jinzhu/gorm](https://img.shields.io/gitter/room/jinzhu/gorm.svg)](https://gitter.im/jinzhu/gorm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Open Collective Backer](https://opencollective.com/gorm/tiers/backer/badge.svg?label=backer&color=brightgreen "Open Collective Backer")](https://opencollective.com/gorm) [![Open Collective Sponsor](https://opencollective.com/gorm/tiers/sponsor/badge.svg?label=sponsor&color=brightgreen "Open Collective Sponsor")](https://opencollective.com/gorm) [![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) -[![GoDoc](https://godoc.org/github.com/jinzhu/gorm?status.svg)](https://godoc.org/github.com/jinzhu/gorm) +[![GoDoc](https://godoc.org/github.com/charm-jp/gorm?status.svg)](https://godoc.org/github.com/charm-jp/gorm) ## Overview @@ -38,4 +38,4 @@ The fantastic ORM library for Golang, aims to be developer friendly. © Jinzhu, 2013~time.Now -Released under the [MIT License](https://github.com/jinzhu/gorm/blob/master/License) +Released under the [MIT License](https://github.com/charm-jp/gorm/blob/master/License) diff --git a/association_test.go b/association_test.go index 60d0cf48..026e90a0 100644 --- a/association_test.go +++ b/association_test.go @@ -7,7 +7,7 @@ import ( "sort" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func TestBelongsTo(t *testing.T) { diff --git a/callbacks_test.go b/callbacks_test.go index c1a1d5e4..e3631c2e 100644 --- a/callbacks_test.go +++ b/callbacks_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func (s *Product) BeforeCreate() (err error) { diff --git a/customize_column_test.go b/customize_column_test.go index c236ac24..07c565c4 100644 --- a/customize_column_test.go +++ b/customize_column_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) type CustomizeColumn struct { diff --git a/dialects/mssql/mssql.go b/dialects/mssql/mssql.go index 8c2360fc..88a084cb 100644 --- a/dialects/mssql/mssql.go +++ b/dialects/mssql/mssql.go @@ -10,9 +10,9 @@ import ( "strings" "time" + "github.com/charm-jp/gorm" // Importing mssql driver package only in dialect file, otherwide not needed _ "github.com/denisenkom/go-mssqldb" - "github.com/jinzhu/gorm" ) func setIdentityInsert(scope *gorm.Scope) { diff --git a/errors_test.go b/errors_test.go index 9a428dec..e971f531 100644 --- a/errors_test.go +++ b/errors_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func TestErrorsCanBeUsedOutsideGorm(t *testing.T) { diff --git a/field_test.go b/field_test.go index 715661f0..5ca8eed4 100644 --- a/field_test.go +++ b/field_test.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) type CalculateField struct { diff --git a/join_table_test.go b/join_table_test.go index 6d5f427d..1be9d781 100644 --- a/join_table_test.go +++ b/join_table_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) type Person struct { diff --git a/main.go b/main.go index 7294de9a..95ae72f1 100644 --- a/main.go +++ b/main.go @@ -51,10 +51,10 @@ const ( // db, err := gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True&loc=Local") // } // GORM has wrapped some drivers, for easier to remember driver's import path, so you could import the mysql driver with -// import _ "github.com/jinzhu/gorm/dialects/mysql" -// // import _ "github.com/jinzhu/gorm/dialects/postgres" -// // import _ "github.com/jinzhu/gorm/dialects/sqlite" -// // import _ "github.com/jinzhu/gorm/dialects/mssql" +// import _ "github.com/charm-jp/gorm/dialects/mysql" +// // import _ "github.com/charm-jp/gorm/dialects/postgres" +// // import _ "github.com/charm-jp/gorm/dialects/sqlite" +// // import _ "github.com/charm-jp/gorm/dialects/mssql" func Open(dialect string, args ...interface{}) (db *DB, err error) { if len(args) == 0 { err = errors.New("invalid database source") diff --git a/main_test.go b/main_test.go index 68bf7419..f03ff46d 100644 --- a/main_test.go +++ b/main_test.go @@ -18,12 +18,12 @@ import ( "testing" "time" + "github.com/charm-jp/gorm" + _ "github.com/charm-jp/gorm/dialects/mssql" + _ "github.com/charm-jp/gorm/dialects/mysql" + "github.com/charm-jp/gorm/dialects/postgres" + _ "github.com/charm-jp/gorm/dialects/sqlite" "github.com/erikstmartin/go-testdb" - "github.com/jinzhu/gorm" - _ "github.com/jinzhu/gorm/dialects/mssql" - _ "github.com/jinzhu/gorm/dialects/mysql" - "github.com/jinzhu/gorm/dialects/postgres" - _ "github.com/jinzhu/gorm/dialects/sqlite" "github.com/jinzhu/now" ) diff --git a/migration_test.go b/migration_test.go index d94ec9ec..1b7b2faf 100644 --- a/migration_test.go +++ b/migration_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) type User struct { diff --git a/naming_test.go b/naming_test.go index 0c6f7713..f3aaafb7 100644 --- a/naming_test.go +++ b/naming_test.go @@ -3,7 +3,7 @@ package gorm_test import ( "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func TestTheNamingStrategy(t *testing.T) { diff --git a/preload_test.go b/preload_test.go index dd29fb5e..b978ea07 100644 --- a/preload_test.go +++ b/preload_test.go @@ -7,7 +7,7 @@ import ( "reflect" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func getPreloadUser(name string) *User { diff --git a/query_test.go b/query_test.go index 2b7e0dff..f0b3dd71 100644 --- a/query_test.go +++ b/query_test.go @@ -4,7 +4,7 @@ import ( "fmt" "reflect" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" "testing" "time" diff --git a/scaner_test.go b/scaner_test.go index 9e251dd6..03f9071f 100644 --- a/scaner_test.go +++ b/scaner_test.go @@ -6,7 +6,7 @@ import ( "errors" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func TestScannableSlices(t *testing.T) { diff --git a/scope_test.go b/scope_test.go index f7f1ed08..b794fbcf 100644 --- a/scope_test.go +++ b/scope_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func NameIn1And2(d *gorm.DB) *gorm.DB { diff --git a/update_test.go b/update_test.go index 85d53e5f..f192897b 100644 --- a/update_test.go +++ b/update_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/jinzhu/gorm" + "github.com/charm-jp/gorm" ) func TestUpdate(t *testing.T) {