# How to execute createQueryMethod to read tags

**URL:** <https://forum.inductiveautomation.com/t/how-to-execute-createquerymethod-to-read-tags/20145>\
**Category:** Module Development\
**Created:** [October 15, 2018, 12:46pm UTC](https://forum.inductiveautomation.com/t/how-to-execute-createquerymethod-to-read-tags/20145 "2018-10-15T12:46:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitk](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@amitk](https://forum.inductiveautomation.com/u/amitk)\
**Post date:** [October 15, 2018, 12:46pm UTC](https://forum.inductiveautomation.com/t/how-to-execute-createquerymethod-to-read-tags/20145/1 "2018-10-15T12:46:30Z")

</div>

Hello All,

Working on creating custom module to read tag history. Created MyTagHistoryProvider class and implemented below interface.  
com.inductiveautomation.ignition.gateway.sqltags.history.TagHistoryProvider

startup() & shutdown() method executed successfully but createQuery method is not executed.  
startup() & shutdown() method executed during installation of module in ignition.  
Find the attached code and image for your reference.  
I did not know how to use createQuery method and its argument?  
Below is method signature for your reference.  
public HistoryQueryExecutor createQuery(List paths, QueryController controller)

Thanks & Regards,  
Amit K[code & image.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2732697ac8210248f1b8f2782f73071924716acc.zip) (191.7 KB)
