Safe Haskell | None |
---|---|
Language | GHC2024 |
Documentation
msGetAnnotations :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> m TableAnnotations #
enableDoubleQuotedIdens :: MonadNapkin MsSql m => IO Connection -> m Connection #
withMsSqlString :: MonadIO m => LogEnv -> Natural -> Text -> (BackendConn MsSql -> m b) -> m b #
retryDeadLockVictim :: forall q a m. (MonadNapkin MsSql m, RenderSql q MsSql) => (q -> IO a) -> q -> m a #
query :: forall q a m. (FromRow a, MonadNapkin MsSql m, RenderSql q MsSql) => BackendConn MsSql -> q -> m [a] #
toOdbcQuery :: RenderSql q MsSql => q -> Query #
queryWithColumns :: (RenderSql q MsSql, MonadNapkin MsSql m) => BackendConn MsSql -> q -> m [Map Text Value] #
fromOdbcValue :: TimeZone -> Value -> Value #
execute :: (MonadNapkin MsSql m, RenderSql q MsSql) => BackendConn MsSql -> q -> m () #
msAnnotate :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> Annotation -> m () #
msObtainTableKind :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> m TableKind #
tellRowsAffected :: MonadNapkin MsSql m => Int -> m () #
fieldTypeByName :: Text -> Type #
normalizedTableMap :: MonadNapkin MsSql m => Set (Ref Table) -> BackendConn MsSql -> m (Map (Ref Table) NormalizedTable) #
getMsSqlSchema :: MonadNapkin MsSql m => BackendConn MsSql -> (Text, Text) -> m [BackendSchemaField MsSql] #
refFqTable :: forall {k} (a :: k). Ref a -> (Text, Text) #
relationSchema :: MonadNapkin MsSql m => BackendConn MsSql -> Relation -> m [BackendSchemaField MsSql] #
getDefaultSchema :: MonadNapkin MsSql m => BackendConn MsSql -> m Name #
listViewsTables :: MonadNapkin MsSql m => Set Prefix -> BackendConn MsSql -> m (Set ListedTable) #
msCheckTableExists :: MonadNapkin MsSql m => BackendConn MsSql -> Ref Table -> m Bool #
tableExistsQuery :: Text -> Text -> Q () #
listViewsTablesQuery :: [Text] -> Query #
renameTableAndMoveSchema :: MonadNapkin MsSql m => BackendConn MsSql -> RenameRelation -> m () #