Skip to content

Commit 612511d

Browse files
fix: update CLI to use virtual_schema instead of create_virtual_module
The create_virtual_module function was removed in 2.0. Update the CLI to use dj.virtual_schema() for loading schemas via the -s flag. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 400b4a4 commit 612511d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datajoint/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def cli(args: list = None):
6161
if kwargs["schemas"]:
6262
for vm in kwargs["schemas"]:
6363
d, m = vm.split(":")
64-
mods[m] = dj.create_virtual_module(m, d)
64+
mods[m] = dj.virtual_schema(d)
6565

6666
banner = "dj repl\n"
6767
if mods:

0 commit comments

Comments
 (0)