Safe Haskell | None |
---|---|
Language | GHC2024 |
Synopsis
- listTables :: MonadNapkin Sqlite m => BackendConn Sqlite -> m (Set ListedTable)
- normalize :: MonadNapkin Sqlite m => NormalizeTableNames -> m (Map (Ref Table) NormalizedTable)
- slQuery :: (MonadNapkin Sqlite m, RenderSql q Sqlite) => BackendConn Sqlite -> q -> m [Map Text Value]
- execute :: (MonadNapkin Sqlite m, RenderSql a Sqlite) => BackendConn Sqlite -> a -> m ()
- slCheckTableExists :: MonadNapkin Sqlite m => BackendConn Sqlite -> Ref Table -> m Bool
- sqliteUriSyntax :: Text -> IO FilePath
- withSqliteString :: ConnectionString -> (BackendConn Sqlite -> IO b) -> IO b
- tellRowsAffected :: MonadNapkin Sqlite m => Int64 -> m ()
- slGetSchema :: MonadNapkin Sqlite m => BackendConn Sqlite -> Ref Table -> Relation -> m [BackendSchemaField Sqlite]
- slObtainTableKind :: MonadNapkin Sqlite m => BackendConn Sqlite -> Ref Table -> m TableKind
- extractSchema :: MonadNapkin Sqlite m => Ref Table -> BackendConn Sqlite -> m [BackendSchemaField Sqlite]
- data SqliteSchemaError
Documentation
listTables :: MonadNapkin Sqlite m => BackendConn Sqlite -> m (Set ListedTable) #
normalize :: MonadNapkin Sqlite m => NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) #
slQuery :: (MonadNapkin Sqlite m, RenderSql q Sqlite) => BackendConn Sqlite -> q -> m [Map Text Value] #
execute :: (MonadNapkin Sqlite m, RenderSql a Sqlite) => BackendConn Sqlite -> a -> m () #
Executes sqlite command and returns the number of rows that were changed, inserted, or deleted by the most recent INSERT, DELETE, or UPDATE statement. see https://hackage.haskell.org/package/sqlite-simple-0.4.18.0/docs/Database-SQLite-Simple.html#v:changes
slCheckTableExists :: MonadNapkin Sqlite m => BackendConn Sqlite -> Ref Table -> m Bool #
Checks if the table or view exists.
sqliteUriSyntax :: Text -> IO FilePath #
withSqliteString :: ConnectionString -> (BackendConn Sqlite -> IO b) -> IO b #
tellRowsAffected :: MonadNapkin Sqlite m => Int64 -> m () #
slGetSchema :: MonadNapkin Sqlite m => BackendConn Sqlite -> Ref Table -> Relation -> m [BackendSchemaField Sqlite] #
slObtainTableKind :: MonadNapkin Sqlite m => BackendConn Sqlite -> Ref Table -> m TableKind #
extractSchema :: MonadNapkin Sqlite m => Ref Table -> BackendConn Sqlite -> m [BackendSchemaField Sqlite] #
data SqliteSchemaError #
Instances
Exception SqliteSchemaError # | |
Defined in Napkin.Run.Sqlite | |
Show SqliteSchemaError # | |
Defined in Napkin.Run.Sqlite showsPrec :: Int -> SqliteSchemaError -> ShowS # show :: SqliteSchemaError -> String # showList :: [SqliteSchemaError] -> ShowS # | |
Eq SqliteSchemaError # | |
Defined in Napkin.Run.Sqlite (==) :: SqliteSchemaError -> SqliteSchemaError -> Bool # (/=) :: SqliteSchemaError -> SqliteSchemaError -> Bool # |