(hub: Hub)
| 82 | } |
| 83 | |
| 84 | export async function getPluginAttachmentRows(hub: Hub): Promise<PluginAttachmentDB[]> { |
| 85 | const { rows }: { rows: PluginAttachmentDB[] } = await hub.db.postgresQuery( |
| 86 | `SELECT posthog_pluginattachment.* FROM posthog_pluginattachment |
| 87 | WHERE plugin_config_id IN (${pluginConfigsInForceQuery('id')})`, |
| 88 | undefined, |
| 89 | 'getPluginAttachmentRows' |
| 90 | ) |
| 91 | return rows |
| 92 | } |
| 93 | |
| 94 | export async function getPluginConfigRows(hub: Hub): Promise<PluginConfig[]> { |
| 95 | const { rows }: { rows: PluginConfig[] } = await hub.db.postgresQuery( |
no test coverage detected
searching dependent graphs…