Îõ³h$ ÿ @     No rights reserved UNLICENSExenog@protonmail.com experimentalPOSIXNoneÁÂà Ø rocksdb-query>Class for types that are corresponding database key and value. rocksdb-query'Class for types that are database keys. rocksdb-query#Read a value from the database, or  if not found. rocksdb-query#Read a value from the database, or  if not found. rocksdb-query1Internal function for recursively matching a key. rocksdb-query¶Pass a short key to filter all the elements whose key prefix match it. Use a sum type for keys that allows to create a version of the key that serializes to a prefix of a full key. œdata MyKey = ShortKey String | FullKey String String deriving Show instance Serialize MyKey where put (ShortKey a) = put a put (FullKey a b) = put a >> put b get = FullKey <$> get <*> get instance KeyValue MyKey String main = do db <- open "test-db" defaultOptions {createIfMissing = True} insert db (FullKey "hello" "world") "despite all my rage" Just record <- runResourceT . runConduit $ matching db def (ShortKey "hello") .| headC print (record :: (MyKey, String)) -- (Fullkey "hello" "world","despite all my rage")In this example the ShortKeyå is serialized to the prefix of the only element in the database, which is then returned. Since the  function of the  instance for MyKey( only understands how to deserialize a FullKey , then that is what is returned. rocksdb-queryLike ã, but skip to the second key passed as argument, or after if there is no entry for the second key.  rocksdb-query"Insert a record into the database.  rocksdb-query"Insert a record into the database.  rocksdb-query"Delete a record from the database.  rocksdb-query"Delete a record from the database.  rocksdb-queryGet the $ to insert a record in the database. rocksdb-queryGet the $ to insert a record in the database. rocksdb-queryGet the & to delete a record from the database. rocksdb-queryGet the & to delete a record from the database. rocksdb-queryWrite a batch to the database. rocksdb-queryLike # but return the first element only. rocksdb-queryLike # but return the first element only. rocksdb-queryLike $, but return the first element only. rocksdb-queryLike $, but return the first element only. rocksdb-queryLike  but return a list. rocksdb-queryLike  but return a list. rocksdb-queryLike , but return a list. rocksdb-queryLike , but return a list.   Safe-Inferred 3 !"#$%&      !"#$% !&'()*+,-./rocksdb-query-0.4.2-inplaceDatabase.RocksDB.QueryPaths_rocksdb_queryKeyValueKeyretrieve retrieveCFretrieveCommonmatchRecursiveListmatchRecursivematching matchingSkipinsertinsertCFremoveremoveCFinsertOp insertOpCFdeleteOp deleteOpCF writeBatch firstMatchingfirstMatchingCFfirstMatchingSkipfirstMatchingSkipCFmatchingAsListmatchingAsListCFmatchingSkipAsListmatchingSkipAsListCFbase GHC.MaybeNothingÝrocksdb-haskell-jprupp-2.1.3-8b478feee359911426ea67df62592d112cf1b9ca7af9c81dac31cbb99abd0c1eDatabase.RocksDB.BasegetÏcereal-0.5.8.1-5ad855a0b35893e056d9abe7b5b6c0caafe68e899249ac5c20e2e38397bf35d1Data.Serialize SerializeBatchOpversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName