TRACKER3-SQL(1) | Tracker manual | TRACKER3-SQL(1) |
tracker3-sql - Use SQL to query the Tracker databases.
tracker3 sql -q <sql> | -f <file>
This command allows probing of the current database. When using commands like tracker3 sparql, the SPARQL used is translated into SQL before being run on the database. This allows direct use of the database using SQL avoiding the SPARQL engine entirely.
The caller can run a query two ways, either by providing a file with the query or by providing a string with the sql query.
The file argument can be either a local path or a URI. It also does not have to be an absolute path.
-f, --file=<file>
-q, --query=<sql>
Show first 10 "nfo:Document" entries where the TOC is not NULL
$ tracker3 sql -q 'SELECT * FROM "nfo:Document" WHERE "nfo:tableOfContents" NOT NULL LIMIT 10;'
tracker3-sparql(1), tracker3-info(1).
http://en.wikipedia.org/wiki/SQL
12/06/2022 | 3.4.2 |