| Copyright | (c) 2012-2013 The leveldb-haskell Authors |
|---|---|
| License | BSD3 |
| Maintainer | kim.altintop@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Database.LevelDB.Types
Description
Synopsis
- data BatchOp
- newtype BloomFilter = BloomFilter FilterPolicyPtr
- newtype Comparator = Comparator (ByteString -> ByteString -> Ordering)
- data Compression
- data FilterPolicy = FilterPolicy {
- fpName :: String
- createFilter :: [ByteString] -> ByteString
- keyMayMatch :: ByteString -> ByteString -> Bool
- data Options = Options {
- blockRestartInterval :: !Int
- blockSize :: !Int
- cacheSize :: !Int
- comparator :: !(Maybe Comparator)
- compression :: !Compression
- createIfMissing :: !Bool
- errorIfExists :: !Bool
- maxOpenFiles :: !Int
- paranoidChecks :: !Bool
- writeBufferSize :: !Int
- filterPolicy :: !(Maybe (Either BloomFilter FilterPolicy))
- data Property
- data ReadOptions = ReadOptions {
- verifyCheckSums :: !Bool
- fillCache :: !Bool
- useSnapshot :: !(Maybe Snapshot)
- newtype Snapshot = Snapshot SnapshotPtr
- type WriteBatch = [BatchOp]
- data WriteOptions = WriteOptions {}
- defaultOptions :: Options
- defaultReadOptions :: ReadOptions
- defaultWriteOptions :: WriteOptions
Documentation
Batch operation
Constructors
| Put ByteString ByteString | |
| Del ByteString |
newtype Comparator #
User-defined comparator
Constructors
| Comparator (ByteString -> ByteString -> Ordering) |
data Compression #
Compression setting
Constructors
| NoCompression | |
| Snappy |
Instances
| Eq Compression # | |
Defined in Database.LevelDB.Types | |
| Show Compression # | |
Defined in Database.LevelDB.Types Methods showsPrec :: Int -> Compression -> ShowS # show :: Compression -> String # showList :: [Compression] -> ShowS # | |
data FilterPolicy #
User-defined filter policy
Constructors
| FilterPolicy | |
Fields
| |
Options when opening a database
Constructors
| Options | |
Fields
| |
Properties exposed by LevelDB
Constructors
| NumFilesAtLevel Int | |
| Stats | |
| SSTables |
data ReadOptions #
Options for read operations
Constructors
| ReadOptions | |
Fields
| |
Instances
| Eq ReadOptions # | |
Defined in Database.LevelDB.Types | |
| Default ReadOptions # | |
Defined in Database.LevelDB.Types Methods def :: ReadOptions # | |
Snapshot handle
Constructors
| Snapshot SnapshotPtr |
type WriteBatch = [BatchOp] #
data WriteOptions #
Options for write operations
Constructors
| WriteOptions | |
Fields
| |
Instances
| Eq WriteOptions # | |
Defined in Database.LevelDB.Types | |
| Show WriteOptions # | |
Defined in Database.LevelDB.Types Methods showsPrec :: Int -> WriteOptions -> ShowS # show :: WriteOptions -> String # showList :: [WriteOptions] -> ShowS # | |
| Default WriteOptions # | |
Defined in Database.LevelDB.Types Methods def :: WriteOptions # | |