rename to v2

This commit is contained in:
Ming Deng
2020-12-14 11:12:00 +08:00
parent a70f7fc920
commit 7bc6010604
241 changed files with 489 additions and 489 deletions

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// RunCommand listen for orm command and then run it if command arguments passed.

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
var (

View File

@@ -19,7 +19,7 @@ import (
"database/sql"
"time"
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// DriverType database driver constant int.

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// ResetModelCache Clean model cache. Then you can re-RegisterModel.

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// RegisterModel register models

View File

@@ -17,7 +17,7 @@ package orm
import (
"time"
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// Define the Type enum

View File

@@ -21,7 +21,7 @@
//
// import (
// "fmt"
// "github.com/beego/beego/orm"
// "github.com/beego/beego/v2/orm"
// _ "github.com/go-sql-driver/mysql" // import your used driver
// )
//
@@ -58,9 +58,9 @@ import (
"database/sql"
"errors"
"github.com/beego/beego/client/orm"
"github.com/beego/beego/client/orm/hints"
"github.com/beego/beego/core/utils"
"github.com/beego/beego/v2/client/orm"
"github.com/beego/beego/v2/client/orm/hints"
"github.com/beego/beego/v2/core/utils"
)
// DebugQueries define the debug

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// ExprSep define the expression separation

View File

@@ -17,7 +17,7 @@ package orm
import (
"io"
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// Log implement the log.Logger

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// define Col operations

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// QueryBuilder is the Query builder interface

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// CommaSpace is the separation

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// TiDBQueryBuilder is the SQL build

View File

@@ -15,7 +15,7 @@
package orm
import (
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
type baseQuerySetter struct {

View File

@@ -18,7 +18,7 @@ import (
"context"
"database/sql"
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
// Params stores the Params

View File

@@ -21,7 +21,7 @@ import (
"strings"
"time"
"github.com/beego/beego/client/orm"
"github.com/beego/beego/v2/client/orm"
)
type fn func(string) string