Safe Haskell | None |
---|---|
Language | Haskell98 |
- initialize :: String -> IO Connection
- purge :: SessionMonad m => m ()
- privateMemory :: String
- sharedMemory :: String
- query :: (ToRow q, FromRow r, SessionMonad m) => Query -> q -> m [r]
- query_ :: (FromRow r, SessionMonad m) => Query -> m [r]
- queryNamed :: (FromRow r, SessionMonad m) => Query -> [NamedParam] -> m [r]
- execute :: (ToRow q, SessionMonad m) => Query -> q -> m ()
- execute_ :: SessionMonad m => Query -> m ()
- executeMany :: (ToRow q, SessionMonad m) => Query -> [q] -> m ()
- executeNamed :: SessionMonad m => Query -> [NamedParam] -> m ()
- withTemporaryTable :: SessionMonad m => String -> [String] -> m a -> m a
- updatePackageDb :: SessionMonad m => PackageDb -> [ModulePackage] -> m ()
- removePackageDb :: SessionMonad m => PackageDb -> m ()
- insertPackageDb :: SessionMonad m => PackageDb -> [ModulePackage] -> m ()
- updateProject :: SessionMonad m => Project -> m ()
- removeProject :: SessionMonad m => Project -> m ()
- insertProject :: SessionMonad m => Project -> m ()
- insertBuildInfo :: SessionMonad m => Info -> m Int
- updateModule :: SessionMonad m => InspectedModule -> m ()
- removeModuleContents :: SessionMonad m => Int -> m ()
- removeModule :: SessionMonad m => Int -> m ()
- insertModuleSymbols :: SessionMonad m => InspectedModule -> m ()
- upsertModule :: SessionMonad m => InspectedModule -> m Int
- lookupModuleLocation :: SessionMonad m => ModuleLocation -> m (Maybe Int)
- lookupModule :: SessionMonad m => ModuleId -> m (Maybe Int)
- lookupSymbol :: SessionMonad m => Int -> SymbolId -> m (Maybe Int)
- lastRow :: SessionMonad m => m Int
- loadModule :: SessionMonad m => Int -> m Module
- loadModules :: (SessionMonad m, ToRow q) => String -> q -> m [Module]
- loadProject :: SessionMonad m => Path -> m Project
- updateModules :: SessionMonad m => [InspectedModule] -> m ()
- lookupId :: SessionMonad m => ModuleLocation -> m Int
- escapeLike :: Text -> Text
- module Database.SQLite.Simple
- module HsDev.Database.SQLite.Select
- module HsDev.Database.SQLite.Instances
- module HsDev.Database.SQLite.Transaction
Documentation
initialize :: String -> IO Connection Source #
Initialize database
purge :: SessionMonad m => m () Source #
privateMemory :: String Source #
Private memory for db
sharedMemory :: String Source #
Shared db in memory
queryNamed :: (FromRow r, SessionMonad m) => Query -> [NamedParam] -> m [r] Source #
execute_ :: SessionMonad m => Query -> m () Source #
executeMany :: (ToRow q, SessionMonad m) => Query -> [q] -> m () Source #
executeNamed :: SessionMonad m => Query -> [NamedParam] -> m () Source #
withTemporaryTable :: SessionMonad m => String -> [String] -> m a -> m a Source #
updatePackageDb :: SessionMonad m => PackageDb -> [ModulePackage] -> m () Source #
removePackageDb :: SessionMonad m => PackageDb -> m () Source #
insertPackageDb :: SessionMonad m => PackageDb -> [ModulePackage] -> m () Source #
updateProject :: SessionMonad m => Project -> m () Source #
removeProject :: SessionMonad m => Project -> m () Source #
insertProject :: SessionMonad m => Project -> m () Source #
insertBuildInfo :: SessionMonad m => Info -> m Int Source #
updateModule :: SessionMonad m => InspectedModule -> m () Source #
removeModuleContents :: SessionMonad m => Int -> m () Source #
removeModule :: SessionMonad m => Int -> m () Source #
insertModuleSymbols :: SessionMonad m => InspectedModule -> m () Source #
upsertModule :: SessionMonad m => InspectedModule -> m Int Source #
lookupModuleLocation :: SessionMonad m => ModuleLocation -> m (Maybe Int) Source #
lookupModule :: SessionMonad m => ModuleId -> m (Maybe Int) Source #
lookupSymbol :: SessionMonad m => Int -> SymbolId -> m (Maybe Int) Source #
lastRow :: SessionMonad m => m Int Source #
loadModule :: SessionMonad m => Int -> m Module Source #
loadModules :: (SessionMonad m, ToRow q) => String -> q -> m [Module] Source #
loadProject :: SessionMonad m => Path -> m Project Source #
updateModules :: SessionMonad m => [InspectedModule] -> m () Source #
Update a bunch of modules
Utils
lookupId :: SessionMonad m => ModuleLocation -> m Int Source #
escapeLike :: Text -> Text Source #
Reexports
module Database.SQLite.Simple
module HsDev.Database.SQLite.Select