mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2025-01-06 04:16:21 +03:00
relational-query: formatted.
This commit is contained in:
parent
3e41647188
commit
ce5354b9b6
@ -62,16 +62,6 @@ data Qualified a =
|
||||
Qualified Qualifier a
|
||||
deriving (Show, Functor, Foldable, Traversable)
|
||||
|
||||
-- | Projection structure unit with single column width
|
||||
data ProjectionUnit
|
||||
= RawColumn ColumnSQL -- ^ used in immediate value or unsafe operations
|
||||
| SubQueryRef (Qualified Int) -- ^ normalized sub-query reference T<n> with Int index
|
||||
| Scalar SubQuery -- ^ scalar sub-query
|
||||
deriving Show
|
||||
|
||||
-- | Untyped projection. Forgot record type.
|
||||
type UntypedProjection = [ProjectionUnit]
|
||||
|
||||
|
||||
-- | node attribute for product.
|
||||
data NodeAttr = Just' | Maybe deriving Show
|
||||
@ -102,6 +92,16 @@ type ProductBuilder = Node QueryRestrictionBuilder
|
||||
type JoinProduct = Maybe QueryProductTree
|
||||
|
||||
|
||||
-- | Projection structure unit with single column width
|
||||
data ProjectionUnit
|
||||
= RawColumn ColumnSQL -- ^ used in immediate value or unsafe operations
|
||||
| SubQueryRef (Qualified Int) -- ^ normalized sub-query reference T<n> with Int index
|
||||
| Scalar SubQuery -- ^ scalar sub-query
|
||||
deriving Show
|
||||
|
||||
-- | Untyped projection. Forgot record type.
|
||||
type UntypedProjection = [ProjectionUnit]
|
||||
|
||||
-- | Phantom typed projection. Projected into Haskell record type 't'.
|
||||
newtype Projection c t =
|
||||
Projection
|
||||
|
Loading…
Reference in New Issue
Block a user