úÎ!eã     None>?]  rocksdb-query#Read a value from the database, or  if not found. 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 Nothing (ShortKey "hello") .| headC print (record :: (MyKey, String)) -- (Fullkey "hello" "world","despite all my rage")In this example the ShortKeye 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 c, 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"Delete a record from the database. rocksdb-queryGet the $ to insert a record in 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 a list. rocksdb-queryLike , but return a list.  Safe¾      !"#$%*rocksdb-query-0.1.4-9VtNZLLAndAHkcEW00CFHUDatabase.RocksDB.QueryPaths_rocksdb_queryKeyValueKeyretrievematchRecursivematching matchingSkipinsertremoveinsertOpdeleteOp writeBatch firstMatchingfirstMatchingSkipmatchingAsListmatchingSkipAsListbaseGHC.BaseNothing,rocksdb-haskell-1.0.1-9YIZC5dllIR7X9n4Z41bPCDatabase.RocksDB.Baseget%cereal-0.5.7.0-ILaYAmVTyR1IcEsGXXUCfIData.Serialize SerializeDatabase.RocksDB.TypesBatchOpversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName