test: doctest for addNullEmbedFilters

This commit is contained in:
steve-chavez
2023-07-06 16:52:46 -05:00
committed by Steve Chavez
parent 52d3026133
commit add10bd10c
5 changed files with 97 additions and 26 deletions
-6
View File
@@ -60,12 +60,6 @@ import PostgREST.ApiRequest.Types (EmbedParam (..), EmbedPath, Field,
import Protolude hiding (try)
-- $setup
-- Setup for doctests
-- >>> import Text.Pretty.Simple (pPrint)
-- >>> deriving instance Show QPError
data QueryParams =
QueryParams
{ qsCanonical :: ByteString
+3
View File
@@ -86,12 +86,15 @@ data ApiRequestError
| UnacceptableSchema [Text]
| UnsupportedMethod ByteString
| ColumnNotFound Text Text
deriving Show
data QPError = QPError Text Text
deriving Show
data RangeError
= NegativeLimit
| LowerGTUpper
| OutOfBounds Text Text
deriving Show
type NodeName = Text
type Depth = Integer