fork: xorm.io/xorm → github.com/hanzoai/xorm

This commit is contained in:
Hanzo AI
2026-04-06 20:45:59 -07:00
parent ab3ffa8fa5
commit ea3aed14f3
98 changed files with 257 additions and 257 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"strings"
"time"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
func TestLRUCache(t *testing.T) {
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"strconv"
"time"
"xorm.io/xorm/internal/json"
"github.com/hanzoai/xorm/internal/json"
)
// ConversionFrom is an inteface to allow retrieve data from database
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"strings"
"time"
"xorm.io/xorm/internal/utils"
"github.com/hanzoai/xorm/internal/utils"
)
// String2Time converts a string to time with original location
+3 -3
View File
@@ -13,9 +13,9 @@ import (
"regexp"
"sync"
"xorm.io/xorm/contexts"
"xorm.io/xorm/log"
"xorm.io/xorm/names"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/names"
)
// DefaultCacheSize sets the default cache size
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"reflect"
"testing"
"xorm.io/xorm/log"
"github.com/hanzoai/xorm/log"
)
type testLogger struct {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
"time"
"xorm.io/xorm/names"
"github.com/hanzoai/xorm/names"
_ "github.com/go-sql-driver/mysql"
_ "github.com/mattn/go-sqlite3"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"errors"
"reflect"
"xorm.io/xorm/contexts"
"github.com/hanzoai/xorm/contexts"
)
// Stmt reprents a stmt objects
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"context"
"database/sql"
"xorm.io/xorm/contexts"
"github.com/hanzoai/xorm/contexts"
)
var _ QueryExecuter = &Tx{}
+4 -4
View File
@@ -13,10 +13,10 @@ import (
"strconv"
"strings"
"xorm.io/xorm/convert"
"xorm.io/xorm/core"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
func init() {
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"strings"
"time"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
// URI represents an uri to visit database
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"fmt"
"time"
"xorm.io/xorm/core"
"github.com/hanzoai/xorm/core"
)
// ScanContext represents a context when Scan
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"database/sql"
"testing"
"xorm.io/xorm/core"
"github.com/hanzoai/xorm/core"
)
type mockDriver struct{}
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"strconv"
"strings"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
func init() {
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"strconv"
"strings"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
var (
+2 -2
View File
@@ -14,8 +14,8 @@ import (
"strings"
"time"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
var (
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"strconv"
"strings"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
var (
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"strconv"
"strings"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
// from http://www.postgresql.org/docs/current/static/sql-keywords-appendix.html
+2 -2
View File
@@ -13,8 +13,8 @@ import (
"strings"
"unicode"
"xorm.io/xorm/core"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/schemas"
)
var (
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"reflect"
"strings"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
)
// TableNameWithSchema will add schema prefix on table name if possible
+1 -1
View File
@@ -7,7 +7,7 @@ package dialects
import (
"testing"
"xorm.io/xorm/names"
"github.com/hanzoai/xorm/names"
"github.com/stretchr/testify/assert"
)
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strings"
"time"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
// FormatColumnTime format column time
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
type dialect struct {
+9 -9
View File
@@ -17,15 +17,15 @@ import (
"strings"
"time"
"xorm.io/xorm/caches"
"xorm.io/xorm/contexts"
"xorm.io/xorm/core"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/log"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"xorm.io/xorm/tags"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
"github.com/hanzoai/xorm/tags"
)
// Engine is the major struct of xorm, it means a database manager.
+6 -6
View File
@@ -8,12 +8,12 @@ import (
"strings"
"testing"
"xorm.io/xorm/caches"
"xorm.io/xorm/core"
"xorm.io/xorm/dialects"
"xorm.io/xorm/log"
"xorm.io/xorm/names"
"xorm.io/xorm/tags"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/tags"
)
type engineTestLogger struct {
+5 -5
View File
@@ -8,11 +8,11 @@ import (
"context"
"time"
"xorm.io/xorm/caches"
"xorm.io/xorm/contexts"
"xorm.io/xorm/dialects"
"xorm.io/xorm/log"
"xorm.io/xorm/names"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/names"
)
// EngineGroup defines an engine group
+2 -2
View File
@@ -1,4 +1,4 @@
module xorm.io/xorm
module github.com/hanzoai/xorm
go 1.20
@@ -15,7 +15,7 @@ require (
github.com/syndtr/goleveldb v1.0.0
github.com/ziutek/mymysql v1.5.4
modernc.org/sqlite v1.20.4
xorm.io/builder v0.3.13
github.com/hanzoai/builder v0.3.13
)
require (
+6 -6
View File
@@ -10,12 +10,12 @@ import (
"reflect"
"time"
"xorm.io/xorm/caches"
"xorm.io/xorm/contexts"
"xorm.io/xorm/dialects"
"xorm.io/xorm/log"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
)
// Interface defines the interface which Engine, EngineGroup and Session will implementate.
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"database/sql/driver"
"fmt"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
type DateTimeString struct {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"strings"
"testing"
"xorm.io/builder"
"xorm.io/xorm/dialects"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/schemas"
)
func newTestStatement(t *testing.T, dbType schemas.DBType) *Statement {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"strconv"
"strings"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
// ConvertIDSQL converts SQL with id
+1 -1
View File
@@ -7,7 +7,7 @@ package statements
import (
"strings"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
type columnMap []string
+2 -2
View File
@@ -5,8 +5,8 @@
package statements
import (
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
type QuoteReplacer struct {
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"fmt"
"time"
"xorm.io/builder"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
func (statement *Statement) writeDeleteOrder(w *builder.BytesWriter) error {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"fmt"
"strings"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
// ErrUnsupportedExprType represents an error with unsupported express type
+2 -2
View File
@@ -7,8 +7,8 @@ package statements
import (
"strings"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
type ErrInvalidIndexHintOperator struct {
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"fmt"
"strings"
"xorm.io/builder"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
func (statement *Statement) writeInsertOutput(buf *strings.Builder, table *schemas.Table) error {
@@ -10,12 +10,12 @@ import (
"testing"
"time"
"xorm.io/builder"
"xorm.io/xorm/caches"
"xorm.io/xorm/dialects"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"xorm.io/xorm/tags"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
"github.com/hanzoai/xorm/tags"
)
func newStatementWithTable(t *testing.T, dbType schemas.DBType) *Statement {
+4 -4
View File
@@ -8,10 +8,10 @@ import (
"fmt"
"strings"
"xorm.io/builder"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
// Join The joinOP should be one of INNER, LEFT OUTER, CROSS etc - this will be prepended to JOIN
+1 -1
View File
@@ -5,7 +5,7 @@
package statements
import (
"xorm.io/builder"
"github.com/hanzoai/builder"
)
// isUsingLegacy returns true if xorm uses legacy LIMIT OFFSET.
+5 -5
View File
@@ -11,11 +11,11 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/caches"
"xorm.io/xorm/dialects"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"xorm.io/xorm/tags"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
"github.com/hanzoai/xorm/tags"
)
func TestMssqlLegacySelectDistinctTopOrder(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"strings"
"testing"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
func TestColumnMapAddAndContain(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"errors"
"fmt"
"xorm.io/builder"
"github.com/hanzoai/builder"
)
type orderBy struct {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"errors"
"fmt"
"xorm.io/builder"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
func (statement *Statement) writePagination(bw *builder.BytesWriter) error {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"fmt"
"reflect"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
var (
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"reflect"
"strings"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
// GenQuerySQL generate query SQL
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"fmt"
"strings"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
// Select replace select
@@ -8,7 +8,7 @@ import (
"strings"
"testing"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
func TestSelectAndColumnStr(t *testing.T) {
+8 -8
View File
@@ -13,14 +13,14 @@ import (
"strings"
"time"
"xorm.io/builder"
"xorm.io/xorm/contexts"
"xorm.io/xorm/convert"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/json"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"xorm.io/xorm/tags"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/json"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
"github.com/hanzoai/xorm/tags"
)
var (
+5 -5
View File
@@ -13,11 +13,11 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/caches"
"xorm.io/xorm/dialects"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"xorm.io/xorm/tags"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
"github.com/hanzoai/xorm/tags"
_ "github.com/mattn/go-sqlite3"
)
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"fmt"
"strings"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
// TableName return current tableName
+6 -6
View File
@@ -11,12 +11,12 @@ import (
"reflect"
"time"
"xorm.io/builder"
"xorm.io/xorm/convert"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/json"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/json"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
func (statement *Statement) ifAddColUpdate(col *schemas.Column, includeVersion, includeUpdated,
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"reflect"
"time"
"xorm.io/xorm/convert"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/json"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/json"
"github.com/hanzoai/xorm/schemas"
)
var (
+1 -1
View File
@@ -7,7 +7,7 @@ package statements
import (
"fmt"
"xorm.io/builder"
"github.com/hanzoai/builder"
)
func (statement *Statement) writeStrings(strs ...string) func(w *builder.BytesWriter) error {
+1 -1
View File
@@ -7,7 +7,7 @@ package utils
import (
"fmt"
"xorm.io/builder"
"github.com/hanzoai/builder"
)
type BuildReader interface {
+1 -1
View File
@@ -7,7 +7,7 @@ package log
import (
"fmt"
"xorm.io/xorm/contexts"
"github.com/hanzoai/xorm/contexts"
)
// LogContext represents a log context
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"reflect"
"xorm.io/xorm"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/schemas"
)
// MigrateFunc is the func signature for migrating.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
_ "github.com/mattn/go-sqlite3"
"github.com/stretchr/testify/assert"
"xorm.io/xorm"
"github.com/hanzoai/xorm"
)
type Person struct {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"fmt"
"reflect"
"xorm.io/builder"
"xorm.io/xorm/core"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/core"
)
// Rows rows wrapper a rows to
+4 -4
View File
@@ -11,10 +11,10 @@ import (
"reflect"
"time"
"xorm.io/xorm/convert"
"xorm.io/xorm/core"
"xorm.io/xorm/dialects"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/schemas"
)
// genScanResultsByBeanNullabale generates scan result
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"bytes"
"encoding/gob"
"xorm.io/xorm/internal/utils"
"github.com/hanzoai/xorm/internal/utils"
)
// PK represents primary key values
+7 -7
View File
@@ -16,13 +16,13 @@ import (
"reflect"
"strconv"
"xorm.io/xorm/contexts"
"xorm.io/xorm/convert"
"xorm.io/xorm/core"
"xorm.io/xorm/internal/json"
"xorm.io/xorm/internal/statements"
"xorm.io/xorm/log"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/internal/json"
"github.com/hanzoai/xorm/internal/statements"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/schemas"
)
// ErrFieldIsNotExist columns does not exist
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"time"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
func setColumnInt(bean any, col *schemas.Column, t int64) {
+1 -1
View File
@@ -4,7 +4,7 @@
package xorm
import "xorm.io/builder"
import "github.com/hanzoai/builder"
// SQL provides raw sql input parameter. When you have a complex SQL statement
// and cannot use Where, Id, In and etc. Methods to describe, you can use SQL.
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"errors"
"strconv"
"xorm.io/builder"
"xorm.io/xorm/caches"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/schemas"
)
// ErrNeedDeletedCond delete needs less one condition error
+6 -6
View File
@@ -10,12 +10,12 @@ import (
"reflect"
"strings"
"xorm.io/builder"
"xorm.io/xorm/caches"
"xorm.io/xorm/convert"
"xorm.io/xorm/internal/statements"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/internal/statements"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
const (
+5 -5
View File
@@ -13,11 +13,11 @@ import (
"strconv"
"time"
"xorm.io/xorm/caches"
"xorm.io/xorm/convert"
"xorm.io/xorm/core"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/core"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
// ErrObjectIsNil return error of object is nil
+5 -5
View File
@@ -12,11 +12,11 @@ import (
"strings"
"time"
"xorm.io/builder"
"xorm.io/xorm/convert"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
// ErrNoElementsOnSlice represents an error there is no element when insert
+1 -1
View File
@@ -7,7 +7,7 @@ package xorm
import (
"reflect"
"xorm.io/xorm/internal/utils"
"github.com/hanzoai/xorm/internal/utils"
)
// IterFunc only use by Iterate
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"database/sql"
"strings"
"xorm.io/xorm/core"
"github.com/hanzoai/xorm/core"
)
func (session *Session) queryPreprocess(sqlStr *string, paramStr ...any) {
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"os"
"strings"
"xorm.io/xorm/dialects"
"xorm.io/xorm/internal/utils"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/internal/utils"
)
// Ping test if database is ok
+4 -4
View File
@@ -7,10 +7,10 @@ package xorm
import (
"reflect"
"xorm.io/builder"
"xorm.io/xorm/internal/statements"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/internal/statements"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
// enumerated all errors
+2 -2
View File
@@ -7,8 +7,8 @@ package xorm
import (
"strings"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/schemas"
)
type SyncOptions struct {
+5 -5
View File
@@ -13,11 +13,11 @@ import (
"time"
"unicode"
"xorm.io/xorm/caches"
"xorm.io/xorm/convert"
"xorm.io/xorm/dialects"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
)
// ErrUnsupportedType represents an unsupported type error
+4 -4
View File
@@ -10,10 +10,10 @@ import (
"testing"
"time"
"xorm.io/xorm/caches"
"xorm.io/xorm/dialects"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"strings"
"time"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
type tag struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"time"
"xorm.io/xorm/caches"
"github.com/hanzoai/xorm/caches"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -6,7 +6,7 @@
package tests
import "xorm.io/xorm/schemas"
import "github.com/hanzoai/xorm/schemas"
func init() {
dbtypes = append(dbtypes, schemas.DAMENG)
+3 -3
View File
@@ -7,9 +7,9 @@ package tests
import (
"testing"
"xorm.io/xorm"
"xorm.io/xorm/log"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"testing"
"time"
"xorm.io/xorm"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/schemas"
_ "gitee.com/travelliu/dm"
_ "github.com/go-sql-driver/mysql"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strings"
"testing"
"xorm.io/xorm"
"github.com/hanzoai/xorm"
"github.com/stretchr/testify/assert"
)
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/schemas"
)
func TestStoreEngine(t *testing.T) {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
func TestSetExpr(t *testing.T) {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/builder"
"github.com/hanzoai/builder"
)
func TestBuilder(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"github.com/shopspring/decimal"
"github.com/stretchr/testify/assert"
"xorm.io/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm/schemas"
)
func TestCount(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"testing"
"time"
"xorm.io/xorm/caches"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)
+5 -5
View File
@@ -9,11 +9,11 @@ import (
"time"
"github.com/shopspring/decimal"
"xorm.io/builder"
"xorm.io/xorm"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)
+6 -6
View File
@@ -12,12 +12,12 @@ import (
"testing"
"time"
"xorm.io/builder"
"xorm.io/xorm"
"xorm.io/xorm/contexts"
"xorm.io/xorm/convert"
"xorm.io/xorm/dialects"
"xorm.io/xorm/schemas"
"github.com/hanzoai/builder"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/contexts"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/schemas"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/assert"
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"testing"
"time"
"xorm.io/xorm"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
)
type IntId struct {
+2 -2
View File
@@ -10,9 +10,9 @@ import (
"testing"
"time"
"xorm.io/builder"
"github.com/hanzoai/builder"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing"
"time"
"xorm.io/xorm/convert"
"github.com/hanzoai/xorm/convert"
"github.com/stretchr/testify/assert"
)
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/names"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/names"
)
func TestTransaction(t *testing.T) {
+5 -5
View File
@@ -11,11 +11,11 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm"
"xorm.io/xorm/internal/statements"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/internal/statements"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
)
func TestUpdateMap(t *testing.T) {
+4 -4
View File
@@ -11,10 +11,10 @@ import (
"time"
"github.com/stretchr/testify/assert"
"xorm.io/xorm/convert"
"xorm.io/xorm/internal/utils"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/internal/utils"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
)
type tempUser struct {
+6 -6
View File
@@ -13,12 +13,12 @@ import (
"strings"
"testing"
"xorm.io/xorm"
"xorm.io/xorm/caches"
"xorm.io/xorm/dialects"
"xorm.io/xorm/log"
"xorm.io/xorm/names"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/caches"
"github.com/hanzoai/xorm/dialects"
"github.com/hanzoai/xorm/log"
"github.com/hanzoai/xorm/names"
"github.com/hanzoai/xorm/schemas"
)
var (
+2 -2
View File
@@ -10,9 +10,9 @@ import (
"testing"
"time"
"xorm.io/xorm/convert"
"github.com/hanzoai/xorm/convert"
"xorm.io/xorm/internal/utils"
"github.com/hanzoai/xorm/internal/utils"
"github.com/stretchr/testify/assert"
)
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"strconv"
"testing"
"xorm.io/xorm"
"xorm.io/xorm/convert"
"xorm.io/xorm/internal/json"
"xorm.io/xorm/schemas"
"github.com/hanzoai/xorm"
"github.com/hanzoai/xorm/convert"
"github.com/hanzoai/xorm/internal/json"
"github.com/hanzoai/xorm/schemas"
"github.com/stretchr/testify/assert"
)