Adding a method `get_like` to PluginStore class

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.

3 Likes