MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / clean

Function clean

src/codegraphcontext/cli/main.py:1071–1081  ·  view source on GitHub ↗

Remove orphaned nodes and relationships from the database. This will clean up nodes that are not connected to any repository, helping to keep your database tidy and performant.

(
    context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use")
)

Source from the content-addressed store, hash-verified

1069
1070@app.command()
1071def clean(
1072 context: Optional[str] = typer.Option(None, "--context", "-c", help="Specific context to use")
1073):
1074 """
1075 Remove orphaned nodes and relationships from the database.
1076
1077 This will clean up nodes that are not connected to any repository,
1078 helping to keep your database tidy and performant.
1079 """
1080 _load_credentials()
1081 clean_helper(context)
1082
1083@app.command()
1084def stats(

Callers

nothing calls this directly

Calls 2

_load_credentialsFunction · 0.85
clean_helperFunction · 0.85

Tested by

no test coverage detected