Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- enableDoubleQuotedIdens :: (Katip m, MonadIO m) => IO Connection -> m Connection
- withMsSqlString :: MonadIO m => LogEnv -> Natural -> Text -> (BackendConn MsSql -> m b) -> m b
- retryDeadLockVictim :: forall m q a. (Katip m, RenderSql q MsSql) => (q -> IO a) -> q -> m a
- query :: forall m q a. (FromRow a, Katip m, RenderSql q MsSql, MonadUnliftIO m) => BackendConn MsSql -> q -> m [a]
- toOdbcQuery :: forall q. RenderSql q MsSql => q -> Query
- queryWithColumns :: forall m q. (Katip m, RenderSql q MsSql, MonadUnliftIO m) => BackendConn MsSql -> q -> m [Map Text Value]
- fromOdbcValue :: TimeZone -> Value -> Value
- execute :: forall m q. (Katip m, MonadUnliftIO m, RenderSql q MsSql) => BackendConn MsSql -> q -> m ()
- execute' :: forall m q. (Katip m, RenderSql q MsSql, MonadUnliftIO m) => BackendConn MsSql -> q -> m Int
- annotate :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> AnnotateCommand -> m ()
- obtainTableKind :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> GetTableKind -> m TableKind
- tellRowsAffected :: MonadNapkin MsSql m => Int -> m ()
- fieldTypeByName :: Text -> Type
- normalizedTableMap :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> Set (Ref Table) -> m (Map (Ref Table) NormalizedTable)
- getMsSqlSchema :: forall m. (Katip m, MonadIO m, MonadUnliftIO m) => BackendConn MsSql -> (String, String) -> m [MsSchemaField]
- refFqTable :: Ref a -> (String, String)
- relationSchema :: forall f viewMeta. (viewMeta ~ BackendViewMeta MsSql, MonadNapkin MsSql f) => BackendConn MsSql -> Relation -> f [MsSchemaField]
- getDefaultSchema :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> m Name
- listViewsTables :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> Set Prefix -> m (Set ListedTable)
- checkTableExists' :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> Ref Table -> m Bool
- tableExistsQuery :: Text -> Text -> Q ()
- listViewsTablesQuery :: [Text] -> Query
- renameTableAndMoveSchema :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> RenameTable -> m ()
Documentation
enableDoubleQuotedIdens :: (Katip m, MonadIO m) => IO Connection -> m Connection #
withMsSqlString :: MonadIO m => LogEnv -> Natural -> Text -> (BackendConn MsSql -> m b) -> m b #
query :: forall m q a. (FromRow a, Katip m, RenderSql q MsSql, MonadUnliftIO m) => BackendConn MsSql -> q -> m [a] #
toOdbcQuery :: forall q. RenderSql q MsSql => q -> Query #
queryWithColumns :: forall m q. (Katip m, RenderSql q MsSql, MonadUnliftIO m) => BackendConn MsSql -> q -> m [Map Text Value] #
fromOdbcValue :: TimeZone -> Value -> Value #
execute :: forall m q. (Katip m, MonadUnliftIO m, RenderSql q MsSql) => BackendConn MsSql -> q -> m () #
execute' :: forall m q. (Katip m, RenderSql q MsSql, MonadUnliftIO m) => BackendConn MsSql -> q -> m Int #
annotate :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> AnnotateCommand -> m () #
obtainTableKind :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> GetTableKind -> m TableKind #
tellRowsAffected :: MonadNapkin MsSql m => Int -> m () #
fieldTypeByName :: Text -> Type #
normalizedTableMap :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> Set (Ref Table) -> m (Map (Ref Table) NormalizedTable) #
getMsSqlSchema :: forall m. (Katip m, MonadIO m, MonadUnliftIO m) => BackendConn MsSql -> (String, String) -> m [MsSchemaField] #
refFqTable :: Ref a -> (String, String) #
relationSchema :: forall f viewMeta. (viewMeta ~ BackendViewMeta MsSql, MonadNapkin MsSql f) => BackendConn MsSql -> Relation -> f [MsSchemaField] #
Introspect schema of a Relation
getDefaultSchema :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> m Name #
listViewsTables :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> Set Prefix -> m (Set ListedTable) #
checkTableExists' :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> Ref Table -> m Bool #
tableExistsQuery :: Text -> Text -> Q () #
listViewsTablesQuery :: [Text] -> Query #
renameTableAndMoveSchema :: (Katip m, MonadUnliftIO m) => BackendConn MsSql -> RenameTable -> m () #