tokyocabinet-haskell-0.0.5: Haskell binding of Tokyo Cabinet

Database.TokyoCabinet.TDB.Query

Synopsis

Documentation

data PostTreatment m k v Source

Constructors

QPPUT (m k v) 
QPOUT 
QPNOP 
QPSTOP 

Instances

Eq (m k v) => Eq (PostTreatment m k v) 
Ord (m k v) => Ord (PostTreatment m k v) 
Show (m k v) => Show (PostTreatment m k v) 

new :: TDB -> IO TDBQRYSource

Create a query object.

delete :: TDBQRY -> IO ()Source

Free object resource forcibly.

addcond :: (Storable k, Storable v) => TDBQRY -> k -> Condition -> v -> IO ()Source

Add a narrowing condition to a query object.

setorder :: Storable k => TDBQRY -> k -> OrderType -> IO ()Source

Set the order of a query object.

setlimit :: TDBQRY -> Int -> Int -> IO ()Source

Set the limit number of records of the result of a query object.

search :: (Storable k, Sequence q) => TDBQRY -> IO (q k)Source

Execute the search of a query object. The return value is a list object of the primary keys of the corresponding records.

searchout :: TDBQRY -> IO BoolSource

Remove each record corresponding to a query object.

procSource

Arguments

:: (Storable k, Storable v, Associative m) 
=> TDBQRY

Query object.

-> (v -> m k v -> IO (PostTreatment m k v))

the iterator function called for each record.

-> IO Bool

If successful, the return value is true, else, it is false.

Process each record corresponding to a query object.