Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrateFunc ¶
MigrateFunc 数据库迁移函数
type Migration ¶
type Migration struct { ID string Migrate MigrateFunc Rollback RollbackFunc }
type MongoMigrate ¶
type MongoMigrate struct {
// contains filtered or unexported fields
}
func (*MongoMigrate) Migrate ¶
func (m *MongoMigrate) Migrate(option ...Option) error
type MongoMigrateTable ¶
type MongoMigrateTable struct {
ID string `bson:"id"`
}
func (*MongoMigrateTable) CollectionName ¶
func (m *MongoMigrateTable) CollectionName() string
Click to show internal directories.
Click to hide internal directories.