mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-12-24 10:40:55 +08:00
adjustment code
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user