IHP Api Reference
Safe HaskellSafe-Inferred

IHP.IDE.Data.Controller

Documentation

connectToAppDb :: (?context :: ControllerContext) => IO Connection Source #

fetchTableNames :: Connection -> IO [Text] Source #

fetchRow :: Connection -> Text -> [Text] -> IO [[DynamicField]] Source #

tablePrimaryKeyFields :: Connection -> Text -> IO [Text] Source #

fetchRows :: FromRow r => Connection -> Text -> IO [r] Source #

fetchRowsPage :: FromRow r => Connection -> Text -> Int -> Int -> IO [r] Source #

tableLength :: Connection -> Text -> IO Int Source #

parseValues :: Bool -> Bool -> Text -> Action Source #

updateValues :: (Semigroup a, IsString a) => [(a, a)] -> [a] Source #

fetchForeignKeyInfo :: Connection -> Text -> Text -> IO (Maybe (Text, Text)) Source #

Orphan instances

Controller DataController Source # 
Instance details

FromField DynamicField Source # 
Instance details

Methods

fromField :: FieldParser DynamicField

FromRow ColumnDefinition Source # 
Instance details

Methods

fromRow :: RowParser ColumnDefinition

ToJSON [DynamicField] Source # 
Instance details