MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / check_identifier

Function check_identifier

24-class-metaprog/persistent/dblib.py:54–56  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

52
53
54def check_identifier(name: str) -> None:
55 if not name.isidentifier():
56 raise ValueError(f'{name!r} is not an identifier')
57
58
59def connect(db_path: str = DEFAULT_DB_PATH) -> sqlite3.Connection:

Callers 7

gen_columns_sqlFunction · 0.85
make_schema_sqlFunction · 0.85
read_columns_sqlFunction · 0.85
insert_recordFunction · 0.85
fetch_recordFunction · 0.85
update_recordFunction · 0.85
delete_recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected