1 {-# LANGUAGE FlexibleInstances #-}
2 {-# LANGUAGE MultiParamTypeClasses #-}
4 module Data.Gargantext.Database.Instances where
6 import Data.Time (UTCTime)
7 import Opaleye (Column, PGBool, PGInt4, PGText, PGTimestamptz, PGFloat8
8 , QueryRunnerColumnDefault
9 , queryRunnerColumnDefault
10 , fieldQueryRunnerColumn
13 instance QueryRunnerColumnDefault PGInt4 Integer where
14 queryRunnerColumnDefault = fieldQueryRunnerColumn
16 instance QueryRunnerColumnDefault PGFloat8 (Maybe Double) where
17 queryRunnerColumnDefault = fieldQueryRunnerColumn
19 instance QueryRunnerColumnDefault PGInt4 (Maybe Int) where
20 queryRunnerColumnDefault = fieldQueryRunnerColumn
22 instance QueryRunnerColumnDefault PGTimestamptz (Maybe UTCTime) where
23 queryRunnerColumnDefault = fieldQueryRunnerColumn