module AirGQL.Config (
Config (..),
maxGraphqlResultCount,
defaultConfig,
)
where
import Data.Bool (Bool (False))
import Data.Int (Int)
maxGraphqlResultCount :: Int
maxGraphqlResultCount :: Int
maxGraphqlResultCount = Int
10000
data Config = Config
{ Config -> Int
maxTablesPerDb :: Int
, Config -> Int
maxColumnsPerTable :: Int
, Config -> Int
maxRowsPerTable :: Int
, Config -> Int
maxVisibleCellsPerTable :: Int
, Config -> Int
maxDbSize :: Int
, Config -> Int
maxCellSize :: Int
, Config -> Int
hardHeapLimit :: Int
, Config -> Int
sqlTimeoutTime :: Int
, Config -> Bool
allowRecursiveTriggers :: Bool
}
defaultConfig :: Config
defaultConfig :: Config
defaultConfig =
Config
{ $sel:maxTablesPerDb:Config :: Int
maxTablesPerDb = Int
100
, $sel:maxColumnsPerTable:Config :: Int
maxColumnsPerTable = Int
500
, $sel:maxRowsPerTable:Config :: Int
maxRowsPerTable = Int
100_000
, $sel:maxVisibleCellsPerTable:Config :: Int
maxVisibleCellsPerTable = Int
0
, $sel:maxDbSize:Config :: Int
maxDbSize = Int
100_000_000
, $sel:maxCellSize:Config :: Int
maxCellSize = Int
10_000_000
, $sel:hardHeapLimit:Config :: Int
hardHeapLimit = Int
500_000_000
, $sel:sqlTimeoutTime:Config :: Int
sqlTimeoutTime = Int
20
, $sel:allowRecursiveTriggers:Config :: Bool
allowRecursiveTriggers = Bool
False
}