Remove pjType from QueryBuilder Insert/Update

* Refactor Insert onConflict
This commit is contained in:
steve-chavez
2019-02-26 11:38:21 -05:00
committed by Steve Chávez
parent 36e9d779fc
commit 00a0d8b9b7
3 changed files with 29 additions and 27 deletions
+3 -3
View File
@@ -115,7 +115,7 @@ newtype ForeignKey = ForeignKey { fkCol :: Column } deriving (Show, Eq, Ord)
data Column =
Column {
colTable :: Table
, colName :: Text
, colName :: ColumnName
, colDescription :: Maybe Text
, colPosition :: Int32
, colNullable :: Bool
@@ -134,6 +134,7 @@ instance Eq Column where
-- | A view column that refers to a table column
type Synonym = (Column, ViewColumn)
type ViewColumn = Column
type ColumnName = Text
data PrimaryKey = PrimaryKey {
pkTable :: Table
@@ -329,9 +330,8 @@ data ReadQuery = Select {
data MutateQuery =
Insert {
in_ :: TableName
, insPkCols :: [Text]
, qPayload :: PayloadJSON
, onConflict :: Maybe PreferResolution
, onConflict :: Maybe (PreferResolution, [ColumnName])
, where_ :: [LogicTree]
, returning :: [FieldName]
}|