# Adding a method \`get\_like\` to PluginStore class

**URL:** <https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026>\
**Category:** Development\
**Created:** [August 6, 2019, 6:12pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026 "2019-08-06T18:12:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [August 6, 2019, 6:37pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026/2 "2019-08-06T18:37:56Z")

</div>

I don’t think I’ve personally needed this pattern. Have you seen it in public plugins, or just the one you are creating?

Also it’s not too long to type:

`PluginStoreRow.where("plugin_name = 'fruits' AND key LIKE 'orange%')`

I would recommend adding a helper function or class to your plugin if you do this often. Also be sure to make sure you have appropriate indexes for these queries.

---

_[View the full topic](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026)._
