feat:add cache prefix support to pg (#4741)

Co-authored-by: 郑好 <zheng.hao1@outlook.com>
This commit is contained in:
hoshi
2025-05-02 16:10:47 +08:00
committed by GitHub
parent e416d01f8d
commit 808b4e496a
3 changed files with 6 additions and 3 deletions

View File

@@ -58,6 +58,7 @@ func init() {
pgDatasourceCmdFlags.StringVar(&command.VarStringBranch, "branch")
pgCmd.PersistentFlags().StringSliceVarPWithDefaultValue(&command.VarStringSliceIgnoreColumns,
"ignore-columns", "i", []string{"create_at", "created_at", "create_time", "update_at", "updated_at", "update_time"})
pgCmd.PersistentFlags().StringVarPWithDefaultValue(&command.VarStringCachePrefix, "prefix", "p", "cache")
mongoCmdFlags.StringSliceVarP(&mongo.VarStringSliceType, "type", "t")
mongoCmdFlags.BoolVarP(&mongo.VarBoolCache, "cache", "c")