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

Function createPlugin

plugin-server/functional_tests/api.ts:62–73  ·  view source on GitHub ↗
(pgClient: Pool, plugin: Omit<Plugin, 'id'>)

Source from the content-addressed store, hash-verified

60}
61
62export const createPlugin = async (pgClient: Pool, plugin: Omit<Plugin, 'id'>) => {
63 return await insertRow(pgClient, 'posthog_plugin', {
64 ...plugin,
65 config_schema: {},
66 from_json: false,
67 from_web: false,
68 created_at: new Date().toISOString(),
69 updated_at: new Date().toISOString(),
70 is_preinstalled: false,
71 capabilities: {},
72 })
73}
74
75export const createPluginConfig = async (
76 pgClient: Pool,

Callers 3

exports-v1.test.tsFile · 0.90
exports-v2.test.tsFile · 0.90
plugins.test.tsFile · 0.90

Calls 1

insertRowFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…