CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.96k stars 1.41k forks source link

Query syntax for database to print custom graphs #250

Open egraether opened 7 years ago

egraether commented 7 years ago

reported by mail

jpenalbae commented 7 years ago

For me JSON would be a nice way to make the queries.

I didn't take a look at what information you are storing into the database, so I cannot really tell you about the query syntax as I do not know which kind of parameters can be queried. But I can give you some examples of queries which I would be doing.

The caller, calee relationship queries:

Search for definitions of variable type X

Whenever a variable is being set, it would cool to be able to filter how it was set, for example if it was set by a malloc. That way I would be able to enumerate which functions dynamically allocate the type X

Being able to stack the queries would be also cool. For example:

egraether commented 7 years ago

+1 by mail

egraether commented 6 years ago

+1 by mail

egraether commented 5 years ago

Most of the above suggestions will be possible with the new custom graph dialog arriving with 2019.3 (see #249). Rephrasing this request to "query syntax".

jankap commented 4 years ago

I really like the way #249 was solved. However, only existing relations can be shown. What about explicit non-existing relations as asked in #830 . Can we help here somehow?