 | tokyocabinet-haskell-0.0.5: Haskell binding of Tokyo Cabinet | Contents | Index |
|
| Database.TokyoCabinet.TDB.Query |
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Condition |
| Constructors | | QCSTREQ | | | QCSTRINC | | | QCSTRBW | | | QCSTREW | | | QCSTRAND | | | QCSTROR | | | QCSTROREQ | | | QCSTRRX | | | QCNUMEQ | | | QCNUMGT | | | QCNUMGE | | | QCNUMLT | | | QCNUMLE | | | QCNUMBT | | | QCNUMOREQ | | | QCNEGATE Condition | | | QCNOIDX Condition | |
| Instances | |
|
|
| data OrderType |
| Constructors | | QOSTRASC | | | QOSTRDESC | | | QONUMASC | | | QONUMDESC | |
| Instances | |
|
|
| data PostTreatment m k v |
| Constructors | | QPPUT (m k v) | | | QPOUT | | | QPNOP | | | QPSTOP | |
| Instances | |
|
|
| new :: TDB -> IO TDBQRY |
| Create a query object.
|
|
| delete :: TDBQRY -> IO () |
| Free object resource forcibly.
|
|
| addcond :: (Storable k, Storable v) => TDBQRY -> k -> Condition -> v -> IO () |
| Add a narrowing condition to a query object.
|
|
| setorder :: Storable k => TDBQRY -> k -> OrderType -> IO () |
| Set the order of a query object.
|
|
| setlimit :: TDBQRY -> Int -> Int -> IO () |
| Set the limit number of records of the result of a query object.
|
|
| search :: (Storable k, Sequence q) => TDBQRY -> IO (q k) |
| 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 Bool |
| Remove each record corresponding to a query object.
|
|
| hint :: TDBQRY -> IO String |
|
| proc |
| :: (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.
|
|
|
| Produced by Haddock version 2.4.2 |