@@ -16,10 +16,8 @@ module Simplex.Messaging.Agent.Store.SQLite.DB
1616 execute ,
1717 execute_ ,
1818 executeMany ,
19- executeNamed ,
2019 query ,
2120 query_ ,
22- queryNamed ,
2321 )
2422where
2523
@@ -33,7 +31,7 @@ import Data.Map.Strict (Map)
3331import qualified Data.Map.Strict as M
3432import Data.Text (Text )
3533import Data.Time (diffUTCTime , getCurrentTime )
36- import Database.SQLite.Simple (FromRow , NamedParam , Query , ToRow )
34+ import Database.SQLite.Simple (FromRow , Query , ToRow )
3735import qualified Database.SQLite.Simple as SQL
3836import Database.SQLite.Simple.FromField (FromField (.. ))
3937import Database.SQLite.Simple.ToField (ToField (.. ))
@@ -105,11 +103,6 @@ execute_ :: Connection -> Query -> IO ()
105103execute_ Connection {conn, slow} sql = timeIt slow sql $ SQL. execute_ conn sql
106104{-# INLINE execute_ #-}
107105
108- -- TODO [postgres] remove
109- executeNamed :: Connection -> Query -> [NamedParam ] -> IO ()
110- executeNamed Connection {conn, slow} sql = timeIt slow sql . SQL. executeNamed conn sql
111- {-# INLINE executeNamed #-}
112-
113106executeMany :: ToRow q => Connection -> Query -> [q ] -> IO ()
114107executeMany Connection {conn, slow} sql = timeIt slow sql . SQL. executeMany conn sql
115108{-# INLINE executeMany #-}
@@ -122,9 +115,4 @@ query_ :: FromRow r => Connection -> Query -> IO [r]
122115query_ Connection {conn, slow} sql = timeIt slow sql $ SQL. query_ conn sql
123116{-# INLINE query_ #-}
124117
125- -- TODO [postgres] remove
126- queryNamed :: FromRow r => Connection -> Query -> [NamedParam ] -> IO [r ]
127- queryNamed Connection {conn, slow} sql = timeIt slow sql . SQL. queryNamed conn sql
128- {-# INLINE queryNamed #-}
129-
130118$ (J. deriveJSON defaultJSON ''SlowQueryStats)
0 commit comments