Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
class ReifiesBackend b => Backend b #
Instances
class HasSqliteConn a #
Instances
HasSqliteConn Sqlite # | |
Defined in Napkin.Run.Sqlite |
tellRowsAffected :: (Monad m, MonadQueryStats m) => Maybe (Ref Table) -> Int -> m Int #
class Command command return backend | command backend -> return #
Instances
sqliteUriSyntax :: String -> IO FilePath #
:: String | |
-> (BackendConn Sqlite -> IO b) | sqlite uri |
-> IO b |
columnsToSchema :: [SchemaColDef] -> Schema Field #
getSqliteConn :: HasSqliteConn a => BackendConn a -> Pool Connection #
getSchema :: (Katip f, HasSqliteConn bk, Command DropView t0 bk, RenderSql Query bk, RenderSql DropView bk, Command CreateViewAs t1 bk, CommandDescr DropView bk, MonadQueryStats f) => bk -> BackendConn bk -> Relation -> f (Fields Field) #