Skip to content

Commit db0bb21

Browse files
committed
feat(migrate): [1/6] core executor, reliability layer, and basic CLI
Adds the migration executor and CLI subcommands for plan/apply/validate: - executor.py: MigrationExecutor with sync apply, key enumeration, index drop/create, quantization, field/key rename - reliability.py: BatchUndoBuffer, QuantizationCheckpoint, BGSAVE helpers - cli/migrate.py: CLI with plan, apply, validate, list, helper, estimate subcommands - cli/main.py: register migrate command - cli/utils.py: add_redis_connection_options helper - Integration tests for comprehensive migration, v1, routes, and field modifier ordering
1 parent ea33dc2 commit db0bb21

File tree

10 files changed

+3921
-7
lines changed

10 files changed

+3921
-7
lines changed

redisvl/cli/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import sys
33

44
from redisvl.cli.index import Index
5+
from redisvl.cli.migrate import Migrate
56
from redisvl.cli.stats import Stats
67
from redisvl.cli.version import Version
78
from redisvl.utils.log import get_logger
@@ -14,6 +15,7 @@ def _usage():
1415
"rvl <command> [<args>]\n",
1516
"Commands:",
1617
"\tindex Index manipulation (create, delete, etc.)",
18+
"\tmigrate Index migration (plan, apply, validate)",
1719
"\tversion Obtain the version of RedisVL",
1820
"\tstats Obtain statistics about an index",
1921
]
@@ -46,6 +48,10 @@ def version(self):
4648
Version()
4749
exit(0)
4850

51+
def migrate(self):
52+
Migrate()
53+
exit(0)
54+
4955
def stats(self):
5056
Stats()
5157
exit(0)

0 commit comments

Comments
 (0)