Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBMigration ¶
type DBMigration struct {
// contains filtered or unexported fields
}
DBMigration user storage in bolt
func NewDBMigration ¶
func NewDBMigration(sugar *zap.SugaredLogger, dbPath string, postgres *sqlx.DB) (*DBMigration, error)
NewDBMigration connect to bolt db
func (*DBMigration) Migrate ¶
func (dbm *DBMigration) Migrate() error
Migrate read data from bolt database file and input into postgres database
Click to show internal directories.
Click to hide internal directories.