MCPcopy Index your code
hub / github.com/PostHog/posthog / getPluginAttachmentRows

Function getPluginAttachmentRows

plugin-server/src/utils/db/sql.ts:84–92  ·  view source on GitHub ↗
(hub: Hub)

Source from the content-addressed store, hash-verified

82}
83
84export 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
94export async function getPluginConfigRows(hub: Hub): Promise<PluginConfig[]> {
95 const { rows }: { rows: PluginConfig[] } = await hub.db.postgresQuery(

Callers 2

loadPluginsFromDBFunction · 0.90
sql.test.tsFile · 0.90

Calls 2

postgresQueryMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…