-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2324 from robx/ghc92
Update GHC to 9.2.2 (fixes #2288)
- Loading branch information
Showing
16 changed files
with
169 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module PostgREST.Request.MutateQuery | ||
( MutateQuery(..) | ||
, MutateRequest | ||
) | ||
where | ||
|
||
import qualified Data.ByteString.Lazy as LBS | ||
import qualified Data.Set as S | ||
|
||
import PostgREST.DbStructure.Identifiers (FieldName, | ||
QualifiedIdentifier) | ||
import PostgREST.RangeQuery (NonnegRange) | ||
import PostgREST.Request.Preferences (PreferResolution) | ||
import PostgREST.Request.Types (LogicTree, OrderTerm) | ||
|
||
import Protolude | ||
|
||
type MutateRequest = MutateQuery | ||
|
||
data MutateQuery | ||
= Insert | ||
{ in_ :: QualifiedIdentifier | ||
, insCols :: S.Set FieldName | ||
, insBody :: Maybe LBS.ByteString | ||
, onConflict :: Maybe (PreferResolution, [FieldName]) | ||
, where_ :: [LogicTree] | ||
, returning :: [FieldName] | ||
} | ||
| Update | ||
{ in_ :: QualifiedIdentifier | ||
, updCols :: S.Set FieldName | ||
, updBody :: Maybe LBS.ByteString | ||
, where_ :: [LogicTree] | ||
, pkFilters :: [FieldName] | ||
, mutRange :: NonnegRange | ||
, mutOrder :: [OrderTerm] | ||
, returning :: [FieldName] | ||
} | ||
| Delete | ||
{ in_ :: QualifiedIdentifier | ||
, where_ :: [LogicTree] | ||
, mutRange :: NonnegRange | ||
, mutOrder :: [OrderTerm] | ||
, returning :: [FieldName] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.