refactor: simplify join conditions logic
This commit is contained in:
committed by
Steve Chavez
parent
922da4520f
commit
5f5a0c7764
@@ -9,7 +9,6 @@ module PostgREST.ApiRequest.Types
|
||||
, Field
|
||||
, Filter(..)
|
||||
, Hint
|
||||
, JoinCondition(..)
|
||||
, JoinType(..)
|
||||
, JsonOperand(..)
|
||||
, JsonOperation(..)
|
||||
@@ -33,8 +32,7 @@ module PostgREST.ApiRequest.Types
|
||||
) where
|
||||
|
||||
import PostgREST.MediaType (MediaType (..))
|
||||
import PostgREST.SchemaCache.Identifiers (FieldName,
|
||||
QualifiedIdentifier)
|
||||
import PostgREST.SchemaCache.Identifiers (FieldName)
|
||||
import PostgREST.SchemaCache.Proc (ProcDescription (..))
|
||||
import PostgREST.SchemaCache.Relationship (Relationship)
|
||||
|
||||
@@ -72,12 +70,6 @@ data RangeError
|
||||
type NodeName = Text
|
||||
type Depth = Integer
|
||||
|
||||
data JoinCondition =
|
||||
JoinCondition
|
||||
(QualifiedIdentifier, FieldName)
|
||||
(QualifiedIdentifier, FieldName)
|
||||
deriving (Eq)
|
||||
|
||||
data OrderTerm = OrderTerm
|
||||
{ otTerm :: Field
|
||||
, otDirection :: Maybe OrderDirection
|
||||
|
||||
Reference in New Issue
Block a user