Safe Haskell | None |
---|---|
Language | Haskell2010 |
Spark.Core.StructuresInternal
- newtype NodeName = NodeName {
- unNodeName :: Text
- newtype NodePath = NodePath {}
- newtype NodeId = NodeId {}
- newtype FieldName = FieldName {
- unFieldName :: Text
- newtype FieldPath = FieldPath {}
- catNodePath :: NodePath -> Text
- fieldName :: Text -> Either String FieldName
- unsafeFieldName :: HasCallStack => Text -> FieldName
- fieldPath :: Text -> Either String FieldPath
Documentation
The name of a node (without path information)
Constructors
NodeName | |
Fields
|
The user-defined path of the node in the hierarchical representation of the graph.
Constructors
NodePath | |
Fields |
The unique ID of a node. It is based on the parents of the node and all the relevant intrinsic values of the node.
Constructors
NodeId | |
Fields |
The name of a field in a sql structure This structure ensures that proper escaping happens if required. TODO: prevent the constructor from being used, it should be checked first.
Constructors
FieldName | |
Fields
|
A path to a nested field an a sql structure. This structure ensures that proper escaping happens if required.
Constructors
FieldPath | |
Fields |
catNodePath :: NodePath -> Text Source #
The concatenated path. This is the inverse function of fieldPath.
fieldName :: Text -> Either String FieldName Source #
A safe constructor for field names that fixes all the issues relevant to SQL escaping TODO: proper implementation
unsafeFieldName :: HasCallStack => Text -> FieldName Source #
Constructs the field name, but will fail if the content is not correct.