{-# LANGUAGE OverloadedStrings #-}
module Network.MPD.Commands.Database
( count
, find
, findAdd
, list
, listAll
, listAllInfo
, lsInfo
, readComments
, search
, update
, rescan
) where
import qualified Network.MPD.Applicative.Internal as A
import qualified Network.MPD.Applicative.Database as A
import Network.MPD.Commands.Query
import Network.MPD.Commands.Types
import Network.MPD.Core
count :: MonadMPD m => Query -> m Count
count = A.runCommand . A.count
find :: MonadMPD m => Query -> m [Song]
find = A.runCommand . A.find
findAdd :: MonadMPD m => Query -> m ()
findAdd = A.runCommand . A.findAdd
list :: MonadMPD m
=> Metadata
-> Maybe Artist -> m [Value]
list m = A.runCommand . A.list m
listAll :: MonadMPD m => Path -> m [Path]
listAll = A.runCommand . A.listAll
listAllInfo :: MonadMPD m => Path -> m [LsResult]
listAllInfo = A.runCommand . A.listAllInfo
lsInfo :: MonadMPD m => Path -> m [LsResult]
lsInfo = A.runCommand . A.lsInfo
readComments :: MonadMPD m => Path -> m [(String, String)]
readComments = A.runCommand . A.readComments
search :: MonadMPD m => Query -> m [Song]
search = A.runCommand . A.search
update :: MonadMPD m => Maybe Path -> m Integer
update = A.runCommand . A.update
rescan :: MonadMPD m => Maybe Path -> m Integer
rescan = A.runCommand . A.rescan