| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a brute force attempt to create a jsondbpartition module
which can be used by the daemon, by autotests and by the client for
private partitions.
Most of the classes were largely unmodified by this change (with
the exception of namespace and symbol exports). JsonDbManagedBtree
was somewhat reworked in order not to expose QBtree as part of this
module.
Overall, the number of headers exposed by this module is far too
large currently. Subsequent patches are needed to refine the APIs
of this module, to make all the headers private and to overall
reduce the number of headers provided.
Change-Id: I6deaf32960102f9d3efcb290edd82381597657aa
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
|
|
|
|
|
| |
Change-Id: I6ac5daea470f1efd19f371e2d941420236b2a591
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Example, assuming stateNumber 2962 is in the recent past:
QtJsonDb::QJsonDbWatcher *watcher = new QtJsonDb::QJsonDbWatcher;
watcher->setQuery(QStringLiteral("[?_type=\"Foo\"]"));
watcher->setInitialStateNumber(2962);
connection->addWatcher(watcher);
...
QList<QJsonDbNotification> event = watcher->takeNotifications();
If stateNumber is 0xFFFFFFFF, then sends a "create" notification for
every object currently in the specified partition. Applications can
use this to find all matching objects and all changes to those objects
going forward.
Fixes Bug #7276.
Also fixes Bug #7300.
Change-Id: Icd01d05f89c8480804ea8ef09061022f107091f1
Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the first major step in separating out the partition
functionality into its own library. It completely removes the JsonDb
class and splits the functionality between DBServer and JsonDbPartition.
The goal of this patch is to minimize the changes to existing code. To
that end, a great deal of code was copied-and-pasted from jsondb.cpp.
Subsequent patches will further the refactoring, removing the redundant
code created by this patch.
Change-Id: I33347b802d53c00375829f1a26277bb142a272da
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace them with a singleton settings object. Having globals that
span the gap between the partition and the daemon are an impediment
to creating a separate partition library.
The JsonDbSettings singleton automatically reads environment variables
based on the names of its properties.
Change-Id: I1a5301d954cf2987713813146c9ad7ca67efc27b
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
|
|
Add JsonDb prefix to classes that did not have it and rename
JsonDbBtreeStorage to JsonDbPartition
Change-Id: Ic6213f77a204cc8f364900007eb23f5b368eb40d
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
|