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

Function is_password_change

mycli/packages/sql_utils.py:562–565  ·  view source on GitHub ↗

Return True if the command is a password change statement.

(text: str)

Source from the content-addressed store, hash-verified

560
561
562def is_password_change(text: str) -> bool:
563 """Return True if the command is a password change statement."""
564 stmt_type, _ = classify_sandbox_statement(text)
565 return stmt_type in ('alter_user', 'set_password')
566
567
568def extract_new_password(text: str) -> str | None:

Callers 3

append_stringMethod · 0.90
_one_iterationFunction · 0.90
test_is_password_changeFunction · 0.90

Calls 1

Tested by 1

test_is_password_changeFunction · 0.72