MCPcopy Create free account
hub / github.com/dbcli/mycli / is_sandbox_allowed

Function is_sandbox_allowed

mycli/packages/sql_utils.py:556–559  ·  view source on GitHub ↗

Return True if the command is allowed in expired-password sandbox mode.

(text: str)

Source from the content-addressed store, hash-verified

554
555
556def is_sandbox_allowed(text: str) -> bool:
557 """Return True if the command is allowed in expired-password sandbox mode."""
558 stmt_type, _ = classify_sandbox_statement(text)
559 return stmt_type is not None
560
561
562def is_password_change(text: str) -> bool:

Callers 2

_one_iterationFunction · 0.90
test_is_sandbox_allowedFunction · 0.90

Calls 1

Tested by 1

test_is_sandbox_allowedFunction · 0.72