QEjdbCollection provide a collection with methods to call database funcitons. More...
| Header: | #include <QEjdbCollection> |
| Since: | Qt 1.0 |
| QEjdbCollection(const QEjdbCollection & other) | |
| QEjdbCollection() | |
| bool | create() |
| bool | drop() |
| bool | exist() |
| QBsonObject | load(QBsonOid oid) |
| QEjdbResult | query(QBsonObject query, QBsonObject hints = QBsonObject()) |
| bool | remove(QBsonOid oid) |
| bool | save(QBsonObject & object) |
| QEjdbCollection(QSharedPointer<QEjdbCollectionPrivate> od) | |
| QEjdbCollection & | operator=(const QEjdbCollection & other) |
QEjdbCollection provide a collection with methods to call database funcitons.
Copy constructor.
[protected] QEjdbCollection::QEjdbCollection(QSharedPointer<QEjdbCollectionPrivate> od)Creates the collection and return the result.
Removes a collection from database and return the result.
Returns true if collection exist otherwise false.
Loads a bson by oid from the collection and return the result. If no bson found a empty object is returned.
QEjdbCollection::query(QBsonObject query, QBsonObject hints)
Queries a collection an return the result. For query and hints documentation see http://ejdb.org/doc/ql/ql.html.
Remove the bson by oid and return the result.
Saves the bson object in the collection and return the result. If the bson is saved the object have an oid.
[protected] QEjdbCollection & QEjdbCollection::operator=(const QEjdbCollection & other)