package
1.1.2
Repository: https://github.com/sora233/ddbot.git
Documentation: pkg.go.dev

# Functions

ChainMigration 将多个 MigrationFunc 组合成一个 MigrationFunc ,每个 MigrationFunc 会按顺序执行.
CopyKeyValueByPattern 遍历一个KeyPattern,对每个key/value执行operator,并把operator的返回值作为新的key/value,保留TTL 如果key变化了,不会删除老的key.
CreateSimpleMigration 可以用来快速创建一个 Migration 的helper 如果逻辑较为复杂,需要其他更多信息,也可以自行实现 Migration.
No description provided by the author
No description provided by the author
MigrationKeyValueByPattern 遍历一个KeyPattern,对每个key/value执行operator,并把operator的返回值作为新的key/value,保留TTL 如果key变化了,会删除老的key.
MigrationValueByPattern 遍历一个KeyPattern,对每个key/value执行operator,并把operator的返回值作为新的value,保留TTL.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

MigrationFunc 定义了迁移函数,实现的时候只能在当前goroutine内操作,不可创建其他goroutine,执行时会在RW事务中.