Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- sql :: ResultSet a => Connection -> Text -> IO a
- class ResultSet a where
- resultSetParser :: Parser a
- class Result a where
- resultParser :: Parser a
- class Row a where
- fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> a
- newtype Only a = Only {
- fromOnly :: a
- rpc :: (RpcQuerySet a, RpcResponseSet b) => Connection -> a -> IO b
- class RpcResponseSet a where
- data RpcResponse a b = RpcResponse Int a b
- class RpcOutputSet a where
- fromReturnValues :: [ReturnValue] -> a
- class RpcResultSet a where
- rpcResultSetParser :: Parser a
- class RpcResult a where
- rpcResultParser :: Parser a
- class RpcQuerySet a where
- toRpcRequest :: a -> RpcRequest
- data RpcQuery a b = RpcQuery a b
- class RpcQueryId a where
- toRpcReqBatch :: RpcParamSet b => a -> b -> RpcReqBatch
- data StoredProcedure
- class RpcParamSet a where
- toRpcReqBatchParams :: a -> [RpcReqBatchParam]
- data RpcParam a
- type RpcParamName = Text
- nvarcharVal :: RpcParamName -> Text -> RpcParam Text
- ntextVal :: RpcParamName -> Text -> RpcParam Text
- varcharVal :: RpcParamName -> ByteString -> RpcParam ByteString
- textVal :: RpcParamName -> ByteString -> RpcParam ByteString
- withTransaction :: Connection -> IO a -> IO a
- data QueryError = QueryError !Info
SQL Text Query
ResultSet
class ResultSet a where Source #
resultSetParser :: Parser a Source #
Instances
ResultSet Int Source # | |
Defined in Database.MSSQLServer.Query.ResultSet | |
ResultSet () Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultSetParser :: Parser () Source # | |
Row a => ResultSet [a] Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultSetParser :: Parser [a] Source # | |
(Result a, Result b) => ResultSet (a, b) Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultSetParser :: Parser (a, b) Source # | |
(Result a, Result b, Result c) => ResultSet (a, b, c) Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultSetParser :: Parser (a, b, c) Source # | |
(Result a, Result b, Result c, Result d) => ResultSet (a, b, c, d) Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultSetParser :: Parser (a, b, c, d) Source # | |
(Result a, Result b, Result c, Result d, Result e) => ResultSet (a, b, c, d, e) Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultSetParser :: Parser (a, b, c, d, e) Source # |
resultParser :: Parser a Source #
Instances
Result Int Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultParser :: Parser Int Source # | |
Result () Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultParser :: Parser () Source # | |
Row a => Result [a] Source # | |
Defined in Database.MSSQLServer.Query.ResultSet resultParser :: Parser [a] Source # |
fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> a Source #
Instances
Data a => Row (Only a) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> Only a Source # | |
(Data a, Data b) => Row (a, b) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b) Source # | |
(Data a, Data b, Data c) => Row (a, b, c) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c) Source # | |
(Data a, Data b, Data c, Data d) => Row (a, b, c, d) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d) Source # | |
(Data a, Data b, Data c, Data d, Data e) => Row (a, b, c, d, e) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f) => Row (a, b, c, d, e, f) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g) => Row (a, b, c, d, e, f, g) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h) => Row (a, b, c, d, e, f, g, h) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i) => Row (a, b, c, d, e, f, g, h, i) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j) => Row (a, b, c, d, e, f, g, h, i, j) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k) => Row (a, b, c, d, e, f, g, h, i, j, k) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l) => Row (a, b, c, d, e, f, g, h, i, j, k, l) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w, Data x) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w, Data x, Data y) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w, Data x, Data y, Data z) => Row (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) Source # |
Instances
Show a => Show (Only a) Source # | |
Data a => Row (Only a) Source # | |
Defined in Database.MSSQLServer.Query.Row fromListOfRawBytes :: [MetaColumnData] -> [RawBytes] -> Only a Source # | |
Data a => RpcOutputSet (Only a) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> Only a Source # |
RPC Query
rpc :: (RpcQuerySet a, RpcResponseSet b) => Connection -> a -> IO b Source #
RpcResponseSet
class RpcResponseSet a where Source #
Instances
data RpcResponse a b Source #
RpcResponse Int a b |
Instances
class RpcOutputSet a where Source #
fromReturnValues :: [ReturnValue] -> a Source #
Instances
RpcOutputSet () Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> () Source # | |
Data a => RpcOutputSet (Only a) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> Only a Source # | |
(Data a, Data b) => RpcOutputSet (a, b) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b) Source # | |
(Data a, Data b, Data c) => RpcOutputSet (a, b, c) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c) Source # | |
(Data a, Data b, Data c, Data d) => RpcOutputSet (a, b, c, d) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d) Source # | |
(Data a, Data b, Data c, Data d, Data e) => RpcOutputSet (a, b, c, d, e) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f) => RpcOutputSet (a, b, c, d, e, f) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g) => RpcOutputSet (a, b, c, d, e, f, g) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h) => RpcOutputSet (a, b, c, d, e, f, g, h) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i) => RpcOutputSet (a, b, c, d, e, f, g, h, i) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w, Data x) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w, Data x, Data y) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) Source # | |
(Data a, Data b, Data c, Data d, Data e, Data f, Data g, Data h, Data i, Data j, Data k, Data l, Data m, Data n, Data o, Data p, Data q, Data r, Data s, Data t, Data u, Data v, Data w, Data x, Data y, Data z) => RpcOutputSet (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet fromReturnValues :: [ReturnValue] -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) Source # |
RpcResultSet
class RpcResultSet a where Source #
rpcResultSetParser :: Parser a Source #
Instances
RpcResultSet () Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultSetParser :: Parser () Source # | |
Row a => RpcResultSet [a] Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultSetParser :: Parser [a] Source # | |
(RpcResult a, RpcResult b) => RpcResultSet (a, b) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultSetParser :: Parser (a, b) Source # | |
(RpcResult a, RpcResult b, RpcResult c) => RpcResultSet (a, b, c) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultSetParser :: Parser (a, b, c) Source # | |
(RpcResult a, RpcResult b, RpcResult c, RpcResult d) => RpcResultSet (a, b, c, d) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultSetParser :: Parser (a, b, c, d) Source # | |
(RpcResult a, RpcResult b, RpcResult c, RpcResult d, RpcResult e) => RpcResultSet (a, b, c, d, e) Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultSetParser :: Parser (a, b, c, d, e) Source # |
class RpcResult a where Source #
rpcResultParser :: Parser a Source #
Instances
RpcResult () Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultParser :: Parser () Source # | |
Row a => RpcResult [a] Source # | |
Defined in Database.MSSQLServer.Query.RpcResponseSet rpcResultParser :: Parser [a] Source # |
RpcQuerySet
class RpcQuerySet a where Source #
toRpcRequest :: a -> RpcRequest Source #
Instances
RpcQuery a b |
Instances
class RpcQueryId a where Source #
toRpcReqBatch :: RpcParamSet b => a -> b -> RpcReqBatch Source #
Instances
RpcQueryId Word16 Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet toRpcReqBatch :: RpcParamSet b => Word16 -> b -> RpcReqBatch Source # | |
RpcQueryId Text Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet toRpcReqBatch :: RpcParamSet b => Text -> b -> RpcReqBatch Source # | |
RpcQueryId StoredProcedure Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet toRpcReqBatch :: RpcParamSet b => StoredProcedure -> b -> RpcReqBatch Source # |
data StoredProcedure Source #
Instances
Bounded StoredProcedure Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet | |
Enum StoredProcedure Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet succ :: StoredProcedure -> StoredProcedure # pred :: StoredProcedure -> StoredProcedure # toEnum :: Int -> StoredProcedure # fromEnum :: StoredProcedure -> Int # enumFrom :: StoredProcedure -> [StoredProcedure] # enumFromThen :: StoredProcedure -> StoredProcedure -> [StoredProcedure] # enumFromTo :: StoredProcedure -> StoredProcedure -> [StoredProcedure] # enumFromThenTo :: StoredProcedure -> StoredProcedure -> StoredProcedure -> [StoredProcedure] # | |
Show StoredProcedure Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet showsPrec :: Int -> StoredProcedure -> ShowS # show :: StoredProcedure -> String # showList :: [StoredProcedure] -> ShowS # | |
RpcQueryId StoredProcedure Source # | |
Defined in Database.MSSQLServer.Query.RpcQuerySet toRpcReqBatch :: RpcParamSet b => StoredProcedure -> b -> RpcReqBatch Source # |
class RpcParamSet a where Source #
toRpcReqBatchParams :: a -> [RpcReqBatchParam] Source #
Instances
RpcParamVal RpcParamName TypeInfo a | |
RpcParamRef RpcParamName TypeInfo a | |
RpcParamDefVal RpcParamName TypeInfo a | |
RpcParamDefRef RpcParamName TypeInfo a |
Instances
type RpcParamName = Text Source #
nvarcharVal :: RpcParamName -> Text -> RpcParam Text Source #
varcharVal :: RpcParamName -> ByteString -> RpcParam ByteString Source #
textVal :: RpcParamName -> ByteString -> RpcParam ByteString Source #
Exceptions
withTransaction :: Connection -> IO a -> IO a Source #
data QueryError Source #
Instances
Show QueryError Source # | |
Defined in Database.MSSQLServer.Query showsPrec :: Int -> QueryError -> ShowS # show :: QueryError -> String # showList :: [QueryError] -> ShowS # | |
Exception QueryError Source # | |
Defined in Database.MSSQLServer.Query toException :: QueryError -> SomeException # fromException :: SomeException -> Maybe QueryError # displayException :: QueryError -> String # |