| commit | 9c99fd37dea61db7ba5d109b98c462ff4eff363f | [log] [tgz] |
|---|---|---|
| author | Treehugger Robot <[email protected]> | Wed Feb 26 15:52:10 2025 -0800 |
| committer | Gerrit Code Review <[email protected]> | Wed Feb 26 15:52:10 2025 -0800 |
| tree | 21cb0cd7117e089a2bd99a3295ed0f8d941c855d | |
| parent | 02f030b87e5a277ef65f53c3fc143b53f70c3233 [diff] | |
| parent | 5a26fd51d9952a8866d735eb067838b387421ded [diff] |
Merge "packages/providers/ContactsProvider: remove deprecated Mockito usages" into main
Running ./logging.sh will enable all verbose logs for the queries in the provider. More details in the script itself.
There are 2 different ways to easily query the database, qc and contatcsproviderutils.sh.
qc queries the deivce directly. For usage, append the query in single quotes after the command:
e.g.
qc/qc 'select * from raw_contacts'
or to get all the tables
qc/qc '.tables'
QC support SQLite language, but it might have some limitations working with complex nested queries.
This script downlaods the database locally and logins into a local version. It is also possible to push any change back to the device.
source contactsproviderutils.sh
contacts2.db and query:sqlite3-pullThis will open a sql terminal with
rlwrap which can be easily used for queries.contacts2.db and query with a graphical interface:sqlitebrowser-pull
sqlite3-push