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

Function extract_new_password

mycli/packages/sql_utils.py:568–571  ·  view source on GitHub ↗

Extract the new password from an ALTER USER or SET PASSWORD statement.

(text: str)

Source from the content-addressed store, hash-verified

566
567
568def extract_new_password(text: str) -> str | None:
569 """Extract the new password from an ALTER USER or SET PASSWORD statement."""
570 _, password = classify_sandbox_statement(text)
571 return password

Callers 2

_one_iterationFunction · 0.90

Calls 1

Tested by 1