File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2 Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
- {-# LANGUAGE DataKinds #-}
2
- {-# LANGUAGE DeriveAnyClass #-}
3
- {-# LANGUAGE DeriveGeneric #-}
4
- {-# LANGUAGE FlexibleInstances #-}
5
1
{-# LANGUAGE GADTs #-}
6
- {-# LANGUAGE MultiParamTypeClasses #-}
7
2
{-# LANGUAGE PolyKinds #-}
8
- {-# LANGUAGE TypeFamilies #-}
9
- {-# OPTIONS_GHC -Wno-orphans #-}
10
3
11
4
module Ouroboros.Consensus.Storage.LedgerDB.V2.Args
12
5
( FlavorImplSpecificTrace (.. )
13
6
, HandleArgs (.. )
7
+ , HandleEnv (.. )
14
8
, LedgerDbFlavorArgs (.. )
9
+ , LSMHandleArgs (.. )
15
10
) where
16
11
17
- import Data.Void (Void )
18
- import GHC.Generics
19
- import NoThunks.Class
12
+ import Data.Void
20
13
21
- data LedgerDbFlavorArgs f m = V2Args HandleArgs
14
+ data LedgerDbFlavorArgs f m = V2Args ( HandleArgs f m )
22
15
23
- data HandleArgs
16
+ -- | The arguments that are needed to create a 'HandleEnv' for the different
17
+ -- backends.
18
+ data HandleArgs f m
24
19
= InMemoryHandleArgs
25
- | LSMHandleArgs Void
26
- deriving (Generic , NoThunks )
20
+ | LSMHandleArgs (LSMHandleArgs f m )
21
+
22
+ data LSMHandleArgs f m = LSMArgs Void
23
+
24
+ -- | The environment used to create new handles
25
+ data HandleEnv m
26
+ = InMemoryHandleEnv
27
+ | -- | The environment for creating LSM handles. It carries the 'Session'
28
+ -- together with its resource key and the resource key of the 'HasBlockIO'.
29
+ LSMHandleEnv ! Void
27
30
28
31
data FlavorImplSpecificTrace
29
32
= -- | Created a new 'LedgerTablesHandle', potentially by duplicating an
You can’t perform that action at this time.
0 commit comments