diff --git a/src/Database/PostgreSQL/Value.purs b/src/Database/PostgreSQL/Value.purs index adbbcc4..471f500 100644 --- a/src/Database/PostgreSQL/Value.purs +++ b/src/Database/PostgreSQL/Value.purs @@ -77,6 +77,12 @@ instance fromSQLValueMaybe :: (FromSQLValue a) => FromSQLValue (Maybe a) where fromSQLValue x | isNull x = pure Nothing | otherwise = Just <$> fromSQLValue x +instance toSQLValueForeign :: ToSQLValue Foreign where + toSQLValue = id + +instance fromSQLValueForeign :: FromSQLValue Foreign where + fromSQLValue = pure + foreign import null :: Foreign foreign import instantToString :: Instant -> Foreign foreign import unsafeIsBuffer :: ∀ a. a -> Boolean