# QueryFlag

> For the complete documentation index, see [llms.txt](https://edgafner.github.io/llms.txt).

QueryFlag

Save a query once, with a token where the value goes. Then select a value in the editor, right-click it, and run the query against your database. QueryFlag is a paid plugin with a 30-day free trial and requires the Database Tools and SQL plugin.

- [Install and activate](queryflag-installation.html): Check the requirements, install the plugin, and start the trial.
- [Create query templates](queryflag-create-templates.html): Save a query with a token for the selected text.

## Use QueryFlag

- [Run a query on selected text](work-with-queryflag.html): Select a value in the editor and run a template from the context menu.
- [Create a template from a query console](queryflag-create-templates.html#create-from-console): Turn a query from a query console into a template with Add Query Flag.
- [Where templates are available](queryflag-create-templates.html#template-scope): Templates are IDE-wide; the menu shows those whose data source is in the project.
- [Write the template query](queryflag-create-templates.html#token-rules): Quote the token where the query needs a string value.
- [Settings](queryflag-settings.html): Manage templates and the console and blank-text options.

## Get help

- [Troubleshooting](queryflag-troubleshooting.html): Fix a missing menu, missing results, validation errors, and failing queries.
- [Support](queryflag-reference-and-support.html): Report a bug, request a feature, or contact the developer.

