graflo.db.tigergraph.name_validation¶
TigerGraph identifier validation against reserved words and invalid characters.
Attributes¶
logger = logging.getLogger(__name__)
module-attribute
¶
Functions:¶
validate_tigergraph_schema_name(name, name_type)
¶
Validate a TigerGraph identifier against reserved words and invalid characters.
Rules come from reserved_words.json via
:func:graflo.db.util.load_tigergraph_identifier_rules, the same loader the
name sanitizer uses — so what this rejects is exactly what the sanitizer
rewrites.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The identifier to validate |
required |
name_type
|
str
|
Kind of identifier for error messages (e.g. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the name is empty, reserved, uses a forbidden prefix, or contains invalid characters |