diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-12-18 19:11:57 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-12-18 19:12:01 +0100 |
commit | 593a53511ec170c67fd3453c88dcda960eac44fe (patch) | |
tree | ba9ce2d062649809959a4e21708db6e86fae6b97 /src/Store/Query/Type.hs | |
parent | 58e1cf274e80d8dbd4889bb2c99d3a009b590282 (diff) |
add `LIMIT`, `ORDER BY` clausesmain
Diffstat (limited to 'src/Store/Query/Type.hs')
-rw-r--r-- | src/Store/Query/Type.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Store/Query/Type.hs b/src/Store/Query/Type.hs index 912d020..2f1f5ec 100644 --- a/src/Store/Query/Type.hs +++ b/src/Store/Query/Type.hs @@ -11,6 +11,8 @@ module Store.Query.Type JoinType (..), Query (..), WhereClause (..), + LimitClause (..), + OffsetClause (..), ) where @@ -28,6 +30,8 @@ data Query (JoinClauses FilePath) (EmbedClauses FilePath) (Maybe WhereClause) + (Maybe LimitClause) + (Maybe OffsetClause) | Update Collection J.Value (Maybe WhereClause) data FieldSelector @@ -64,3 +68,9 @@ data WhereClause data Comparison = Eq (Either J.Value Field) (Either J.Value Field) deriving (Show) + +data LimitClause = Limit Int + deriving (Show) + +data OffsetClause = Offset Int + deriving (Show) |