Chore: Update the xorm dependency (#22376)

* Upgrade xorm

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Noval Agung Prayogo
2020-04-01 15:57:21 +02:00
committed by GitHub
co-authored by Arve Knudsen
parent d7d94d13a0
commit ea35ae4d1f
166 changed files with 4435 additions and 2954 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/models"
"github.com/go-xorm/xorm"
"xorm.io/xorm"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/components/securejsondata"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
glog "github.com/grafana/grafana/pkg/infra/log"
"github.com/go-xorm/core"
"xorm.io/core"
)
type XormLogger struct {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/go-xorm/xorm"
. "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
"xorm.io/xorm"
)
func addAnnotationMig(mg *Migrator) {
@@ -3,9 +3,9 @@ package migrations
import (
"testing"
"github.com/go-xorm/xorm"
. "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
"github.com/grafana/grafana/pkg/services/sqlstore/sqlutil"
"xorm.io/xorm"
. "github.com/smartystreets/goconvey/convey"
)
+1 -1
View File
@@ -3,9 +3,9 @@ package migrations
import (
"fmt"
"github.com/go-xorm/xorm"
. "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
"github.com/grafana/grafana/pkg/util"
"xorm.io/xorm"
)
func addUserMigrations(mg *Migrator) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/go-xorm/xorm"
"xorm.io/xorm"
)
type Dialect interface {
+1 -1
View File
@@ -4,11 +4,11 @@ import (
"time"
_ "github.com/go-sql-driver/mysql"
"github.com/go-xorm/xorm"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/util/errutil"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"
"xorm.io/xorm"
)
type Migrator struct {
@@ -7,7 +7,7 @@ import (
"github.com/VividCortex/mysqlerr"
"github.com/go-sql-driver/mysql"
"github.com/go-xorm/xorm"
"xorm.io/xorm"
)
type Mysql struct {
@@ -5,9 +5,9 @@ import (
"strconv"
"strings"
"github.com/go-xorm/xorm"
"github.com/grafana/grafana/pkg/util/errutil"
"github.com/lib/pq"
"xorm.io/xorm"
)
type Postgres struct {
@@ -3,8 +3,8 @@ package migrator
import (
"fmt"
"github.com/go-xorm/xorm"
"github.com/mattn/go-sqlite3"
"xorm.io/xorm"
)
type Sqlite3 struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/go-xorm/xorm"
"xorm.io/xorm"
)
const (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"reflect"
"github.com/go-xorm/xorm"
"xorm.io/xorm"
)
type DBSession struct {
+1 -1
View File
@@ -11,7 +11,6 @@ import (
"time"
"github.com/go-sql-driver/mysql"
"github.com/go-xorm/xorm"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/infra/localcache"
"github.com/grafana/grafana/pkg/infra/log"
@@ -26,6 +25,7 @@ import (
"github.com/grafana/grafana/pkg/util"
"github.com/grafana/grafana/pkg/util/errutil"
_ "github.com/lib/pq"
"xorm.io/xorm"
)
var (
+1 -1
View File
@@ -4,11 +4,11 @@ import (
"context"
"time"
"github.com/go-xorm/xorm"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/util/errutil"
"github.com/mattn/go-sqlite3"
"xorm.io/xorm"
)
// WithTransactionalDbSession calls the callback with an session within a transaction