graflo.db.tigergraph.onto¶
TigerGraph-specific type mappings and constants.
This module provides TigerGraph-specific type mappings and constants, separating database-specific concerns from universal types defined at the root GraFlo level.
Universal types (FieldType enum) are defined in graflo.architecture.vertex. This module provides TigerGraph-specific mappings and aliases.
Attributes¶
TIGERGRAPH_TYPE_ALIASES = {'INTEGER': FieldType.INT.value, 'STR': FieldType.STRING.value, 'BOOLEAN': FieldType.BOOL.value, 'DATE': FieldType.DATETIME.value, 'TIME': FieldType.DATETIME.value}
module-attribute
¶
VALID_TIGERGRAPH_TYPES = set(SCALAR_FIELD_TYPE_VALUES)
module-attribute
¶
Classes¶
Functions:¶
field_type_from_gsql(declared)
¶
Map a GSQL DDL type token back to a FieldType.
Returns None for anything outside the mapping -- MAP<..>, SET<..>
and user-defined tuples have no graflo equivalent, and a recovered schema is
more useful with an untyped field than with a wrong one.