adjustment code

This commit is contained in:
zhuyasen
2024-03-09 15:14:31 +08:00
parent 289af43d7b
commit 87bae7eee4
198 changed files with 521 additions and 523 deletions

View File

@@ -7,14 +7,14 @@ import (
"sync/atomic"
"time"
"github.com/zhufuyi/sponge/pkg/mgo"
"github.com/zhufuyi/sponge/pkg/utils"
"github.com/huandu/xstrings"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/bsontype"
"go.mongodb.org/mongo-driver/mongo"
mgoOptions "go.mongodb.org/mongo-driver/mongo/options"
"github.com/zhufuyi/sponge/pkg/mgo"
"github.com/zhufuyi/sponge/pkg/utils"
)
const (

View File

@@ -20,7 +20,7 @@ type Args struct {
DDLFile string // DDL file
DBDriver string // db driver name, such as mysql, postgres, default is mysql
DBDriver string // db driver name, such as mysql, mongodb, postgresql, tidb, sqlite, default is mysql
DBDsn string // connecting to mysql's dsn, if DBDriver is sqlite, DBDsn is local db file
DBTable string // table name
fieldTypes map[string]string // field name:type