packages feed

hasql API 1.9.3.2 → 2.2.0.0

full diff

Public declarations, with the types the compiler inferred, from the documentation Hackage built for each version.

40 removed, 75 added, 7 changed

version bump matches the API change (PVP)

- Hasql.Connection: type ConnectionError = Maybe ByteString
- Hasql.Connection: withLibPQConnection :: Connection -> (Connection -> IO a) -> IO a
- Hasql.Connection.Setting: connection :: Connection -> Setting
- Hasql.Connection.Setting: data Setting
- Hasql.Connection.Setting: instance Hasql.Connection.Config.Updates Hasql.Connection.Setting.Setting
- Hasql.Connection.Setting: usePreparedStatements :: Bool -> Setting
- Hasql.Connection.Setting.Connection: data Connection
- Hasql.Connection.Setting.Connection: instance Hasql.Connection.Config.ConnectionString.Constructs Hasql.Connection.Setting.Connection.Connection
- Hasql.Connection.Setting.Connection: params :: [Param] -> Connection
- Hasql.Connection.Setting.Connection: string :: Text -> Connection
- Hasql.Connection.Setting.Connection.Param: data Param
- Hasql.Connection.Setting.Connection.Param: dbname :: Text -> Param
- Hasql.Connection.Setting.Connection.Param: host :: Text -> Param
- Hasql.Connection.Setting.Connection.Param: instance Hasql.Connection.Config.ConnectionString.Params.Updates Hasql.Connection.Setting.Connection.Param.Param
- Hasql.Connection.Setting.Connection.Param: other :: Text -> Text -> Param
- Hasql.Connection.Setting.Connection.Param: password :: Text -> Param
- Hasql.Connection.Setting.Connection.Param: port :: Word16 -> Param
- Hasql.Connection.Setting.Connection.Param: user :: Text -> Param
- Hasql.Encoders: unknownEnum :: (a -> Text) -> Value a
- Hasql.Session: ClientError :: Maybe ByteString -> CommandError
- Hasql.Session: EndOfInput :: RowError
- Hasql.Session: PipelineError :: CommandError -> SessionError
- Hasql.Session: QueryError :: ByteString -> [Text] -> CommandError -> SessionError
- Hasql.Session: ResultError :: ResultError -> CommandError
- Hasql.Session: RowError :: Int -> Int -> RowError -> ResultError
- Hasql.Session: ServerError :: ByteString -> ByteString -> Maybe ByteString -> Maybe ByteString -> Maybe Int -> ResultError
- Hasql.Session: UnexpectedAmountOfRows :: Int -> ResultError
- Hasql.Session: UnexpectedNull :: RowError
- Hasql.Session: UnexpectedResult :: Text -> ResultError
- Hasql.Session: ValueError :: Text -> RowError
- Hasql.Session: data CommandError
- Hasql.Session: data ResultError
- Hasql.Session: data RowError
- Hasql.Session: data SessionError
- Hasql.Session: run :: Session a -> Connection -> IO (Either SessionError a)
- Hasql.Session: sql :: ByteString -> Session ()
- Hasql.Statement: Statement :: ByteString -> Params params -> Result result -> Bool -> Statement params result
- Hasql.Statement: instance Data.Profunctor.Unsafe.Profunctor Hasql.Statement.Statement
- Hasql.Statement: instance GHC.Internal.Base.Functor (Hasql.Statement.Statement params)
- Hasql.Statement: instance Witherable.Filterable (Hasql.Statement.Statement params)
+ Hasql.Connection: use :: Connection -> Session a -> IO (Either UseError a)
+ Hasql.Connection.Settings: applicationName :: Text -> Settings
+ Hasql.Connection.Settings: connectionString :: Text -> Settings
+ Hasql.Connection.Settings: data Settings
+ Hasql.Connection.Settings: dbname :: Text -> Settings
+ Hasql.Connection.Settings: host :: Text -> Settings
+ Hasql.Connection.Settings: hostAndPort :: Text -> Word16 -> Settings
+ Hasql.Connection.Settings: instance Data.String.IsString Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: instance GHC.Base.Monoid Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: instance GHC.Base.Semigroup Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: instance GHC.Classes.Eq Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: instance GHC.Show.Show Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: instance Hasql.Connection.Config.Constructs Hasql.Connection.Settings.Settings
+ Hasql.Connection.Settings: noPreparedStatements :: Bool -> Settings
+ Hasql.Connection.Settings: other :: Text -> Text -> Settings
+ Hasql.Connection.Settings: password :: Text -> Settings
+ Hasql.Connection.Settings: user :: Text -> Settings
+ Hasql.Decoders: bpchar :: Value Text
+ Hasql.Decoders: citext :: Value Text
+ Hasql.Decoders: record :: Composite a -> Value a
+ Hasql.Decoders: varchar :: Value Text
+ Hasql.Encoders: bpchar :: Value Text
+ Hasql.Encoders: citext :: Value Text
+ Hasql.Encoders: custom :: Maybe Text -> Text -> Maybe (Word32, Word32) -> [(Maybe Text, Text)] -> (((Maybe Text, Text) -> (Word32, Word32)) -> a -> ByteString) -> (a -> Text) -> Value a
+ Hasql.Encoders: hstore :: Foldable foldable => Value (foldable (Text, Maybe Text))
+ Hasql.Encoders: varchar :: Value Text
+ Hasql.Errors: CellRowError :: Int -> Word32 -> CellError -> RowError
+ Hasql.Errors: ConnectionAcquireError :: Text -> AcquireError
+ Hasql.Errors: ConnectionPasswordRequiredAcquireError :: Text -> AcquireError
+ Hasql.Errors: ConnectionUseError :: ConnectionError -> UseError
+ Hasql.Errors: DeserializationCellError :: Text -> CellError
+ Hasql.Errors: InitializationConnectionLossAcquireError :: Text -> AcquireError
+ Hasql.Errors: InitializationServerErrorAcquireError :: ServerError -> AcquireError
+ Hasql.Errors: LocalConnectionError :: Text -> ConnectionError
+ Hasql.Errors: MissingTypesSessionError :: HashSet (Maybe Text, Text) -> SessionError
+ Hasql.Errors: RefinementRowError :: Text -> RowError
+ Hasql.Errors: RowStatementError :: Int -> RowError -> StatementError
+ Hasql.Errors: ScriptSessionError :: Text -> ServerError -> SessionError
+ Hasql.Errors: ServerConnectionError :: ServerError -> ConnectionError
+ Hasql.Errors: ServerError :: Text -> Text -> Maybe Text -> Maybe Text -> Maybe Int -> ServerError
+ Hasql.Errors: ServerStatementError :: ServerError -> StatementError
+ Hasql.Errors: SessionUseError :: SessionError -> UseError
+ Hasql.Errors: StatementSessionError :: Int -> Int -> Text -> [Text] -> Bool -> StatementError -> SessionError
+ Hasql.Errors: UnexpectedColumnCountStatementError :: Int -> Int -> StatementError
+ Hasql.Errors: UnexpectedColumnTypeStatementError :: Int -> Word32 -> Word32 -> StatementError
+ Hasql.Errors: UnexpectedNullCellError :: CellError
+ Hasql.Errors: UnexpectedResultStatementError :: Text -> StatementError
+ Hasql.Errors: UnexpectedRowCountStatementError :: Int -> Int -> Int -> StatementError
+ Hasql.Errors: VersionTooOldAcquireError :: Int -> Int -> Int -> AcquireError
+ Hasql.Errors: class IsError a
+ Hasql.Errors: data AcquireError
+ Hasql.Errors: data CellError
+ Hasql.Errors: data ConnectionError
+ Hasql.Errors: data RowError
+ Hasql.Errors: data ServerError
+ Hasql.Errors: data SessionError
+ Hasql.Errors: data StatementError
+ Hasql.Errors: data UseError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.AcquireError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.CellError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.ConnectionError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.RowError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.ServerError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.SessionError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.StatementError
+ Hasql.Errors: instance Hasql.Errors.IsError Hasql.Engine.Errors.UseError
+ Hasql.Errors: toDetailedText :: IsError e => e -> Text
+ Hasql.Errors: toDetails :: IsError a => a -> [(Text, Text)]
+ Hasql.Errors: toMessage :: IsError a => a -> Text
+ Hasql.Errors: toSqlState :: IsError a => a -> Maybe Text
+ Hasql.Session: onLibpqConnection :: (Connection -> IO (Either UseError a, Connection)) -> Session a
+ Hasql.Session: script :: Text -> Session ()
+ Hasql.Statement: preparable :: Text -> Params params -> Result result -> Statement params result
+ Hasql.Statement: toSql :: Statement params result -> Text
+ Hasql.Statement: unpreparable :: Text -> Params params -> Result result -> Statement params result
- Hasql.Connection: acquire :: [Setting] -> IO (Either ConnectionError Connection)
+ Hasql.Connection: acquire :: Adapter -> Settings -> IO (Either AcquireError Connection)
- Hasql.Decoders: composite :: Composite a -> Value a
+ Hasql.Decoders: composite :: Maybe Text -> Text -> Composite a -> Value a
- Hasql.Decoders: custom :: (Bool -> ByteString -> Either Text a) -> Value a
+ Hasql.Decoders: custom :: Maybe Text -> Text -> Maybe (Word32, Word32) -> [(Maybe Text, Text)] -> (((Maybe Text, Text) -> (Word32, Word32)) -> ByteString -> Either Text a) -> Value a
- Hasql.Decoders: enum :: (Text -> Maybe a) -> Value a
+ Hasql.Decoders: enum :: Maybe Text -> Text -> (Text -> Maybe a) -> Value a
- Hasql.Decoders: rowVector :: Row a -> Result (Vector a)
+ Hasql.Decoders: rowVector :: Vector vector a => Row a -> Result (vector a)
- Hasql.Encoders: composite :: Composite a -> Value a
+ Hasql.Encoders: composite :: Maybe Text -> Text -> Composite a -> Value a
- Hasql.Encoders: enum :: (a -> Text) -> Value a
+ Hasql.Encoders: enum :: Maybe Text -> Text -> (a -> Text) -> Value a