2025-11-14 14:05:05 -06:00
|
|
|
-- NOTE: This file is auto generated by ./sql-generator
|
|
|
|
|
|
2026-05-18 11:09:33 -04:00
|
|
|
-- PluginRepository.getForLoad
|
2025-11-14 14:05:05 -06:00
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin"."id",
|
|
|
|
|
"plugin"."name",
|
|
|
|
|
"plugin"."version",
|
|
|
|
|
"plugin"."wasmBytes",
|
2025-11-14 14:05:05 -06:00
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
coalesce(json_agg(agg), '[]')
|
|
|
|
|
from
|
|
|
|
|
(
|
|
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."name",
|
|
|
|
|
"plugin_method"."hostFunctions"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"
|
2025-11-14 14:05:05 -06:00
|
|
|
where
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
2025-11-14 14:05:05 -06:00
|
|
|
) as agg
|
2026-05-18 11:09:33 -04:00
|
|
|
) as "methods"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
|
|
|
|
"plugin"
|
|
|
|
|
where
|
2026-05-18 11:09:33 -04:00
|
|
|
"enabled" = $1
|
2025-11-14 14:05:05 -06:00
|
|
|
|
2026-05-18 11:09:33 -04:00
|
|
|
-- PluginRepository.search
|
2025-11-14 14:05:05 -06:00
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin"."id",
|
|
|
|
|
"plugin"."name",
|
|
|
|
|
"plugin"."title",
|
|
|
|
|
"plugin"."description",
|
|
|
|
|
"plugin"."author",
|
|
|
|
|
"plugin"."version",
|
|
|
|
|
"plugin"."createdAt",
|
|
|
|
|
"plugin"."updatedAt",
|
2025-11-14 14:05:05 -06:00
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
coalesce(json_agg(agg), '[]')
|
|
|
|
|
from
|
|
|
|
|
(
|
|
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."name",
|
|
|
|
|
"plugin_method"."title",
|
|
|
|
|
"plugin_method"."description",
|
|
|
|
|
"plugin_method"."types",
|
|
|
|
|
"plugin_method"."schema",
|
|
|
|
|
"plugin_method"."hostFunctions",
|
|
|
|
|
"plugin_method"."uiHints",
|
|
|
|
|
"plugin"."name" as "pluginName"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"
|
2025-11-14 14:05:05 -06:00
|
|
|
where
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
2025-11-14 14:05:05 -06:00
|
|
|
) as agg
|
2026-05-18 11:09:33 -04:00
|
|
|
) as "methods"
|
|
|
|
|
from
|
|
|
|
|
"plugin"
|
|
|
|
|
order by
|
|
|
|
|
"plugin"."name"
|
|
|
|
|
|
|
|
|
|
-- PluginRepository.getByName
|
|
|
|
|
select
|
|
|
|
|
"plugin"."id",
|
|
|
|
|
"plugin"."name",
|
|
|
|
|
"plugin"."title",
|
|
|
|
|
"plugin"."description",
|
|
|
|
|
"plugin"."author",
|
|
|
|
|
"plugin"."version",
|
|
|
|
|
"plugin"."createdAt",
|
|
|
|
|
"plugin"."updatedAt",
|
2025-11-14 14:05:05 -06:00
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
coalesce(json_agg(agg), '[]')
|
|
|
|
|
from
|
|
|
|
|
(
|
|
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."name",
|
|
|
|
|
"plugin_method"."title",
|
|
|
|
|
"plugin_method"."description",
|
|
|
|
|
"plugin_method"."types",
|
|
|
|
|
"plugin_method"."schema",
|
|
|
|
|
"plugin_method"."hostFunctions",
|
|
|
|
|
"plugin_method"."uiHints",
|
|
|
|
|
"plugin"."name" as "pluginName"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"
|
2025-11-14 14:05:05 -06:00
|
|
|
where
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
2025-11-14 14:05:05 -06:00
|
|
|
) as agg
|
2026-05-18 11:09:33 -04:00
|
|
|
) as "methods"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
|
|
|
|
"plugin"
|
|
|
|
|
where
|
|
|
|
|
"plugin"."name" = $1
|
|
|
|
|
|
2026-05-18 11:09:33 -04:00
|
|
|
-- PluginRepository.get
|
2025-11-14 14:05:05 -06:00
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin"."id",
|
|
|
|
|
"plugin"."name",
|
|
|
|
|
"plugin"."title",
|
|
|
|
|
"plugin"."description",
|
|
|
|
|
"plugin"."author",
|
|
|
|
|
"plugin"."version",
|
|
|
|
|
"plugin"."createdAt",
|
|
|
|
|
"plugin"."updatedAt",
|
2025-11-14 14:05:05 -06:00
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
coalesce(json_agg(agg), '[]')
|
|
|
|
|
from
|
|
|
|
|
(
|
|
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."name",
|
|
|
|
|
"plugin_method"."title",
|
|
|
|
|
"plugin_method"."description",
|
|
|
|
|
"plugin_method"."types",
|
|
|
|
|
"plugin_method"."schema",
|
|
|
|
|
"plugin_method"."hostFunctions",
|
|
|
|
|
"plugin_method"."uiHints",
|
|
|
|
|
"plugin"."name" as "pluginName"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"
|
2025-11-14 14:05:05 -06:00
|
|
|
where
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."pluginId" = "plugin"."id"
|
2025-11-14 14:05:05 -06:00
|
|
|
) as agg
|
2026-05-18 11:09:33 -04:00
|
|
|
) as "methods"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
|
|
|
|
"plugin"
|
|
|
|
|
where
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin"."id" = $1
|
2025-11-14 14:05:05 -06:00
|
|
|
|
2026-05-18 11:09:33 -04:00
|
|
|
-- PluginRepository.getForValidation
|
2025-11-14 14:05:05 -06:00
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"."id",
|
|
|
|
|
"plugin_method"."name",
|
|
|
|
|
"plugin"."name" as "pluginName",
|
|
|
|
|
"plugin_method"."types"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"
|
|
|
|
|
inner join "plugin" on "plugin_method"."pluginId" = "plugin"."id"
|
2025-11-14 14:05:05 -06:00
|
|
|
|
2026-05-18 11:09:33 -04:00
|
|
|
-- PluginRepository.searchMethods
|
2025-11-14 14:05:05 -06:00
|
|
|
select
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin"."name" as "pluginName",
|
|
|
|
|
"plugin_method"."pluginId",
|
|
|
|
|
"plugin_method"."id",
|
|
|
|
|
"plugin_method"."name",
|
|
|
|
|
"plugin_method"."title",
|
|
|
|
|
"plugin_method"."description",
|
|
|
|
|
"plugin_method"."types",
|
|
|
|
|
"plugin_method"."schema",
|
|
|
|
|
"plugin_method"."hostFunctions",
|
|
|
|
|
"plugin_method"."uiHints"
|
2025-11-14 14:05:05 -06:00
|
|
|
from
|
2026-05-18 11:09:33 -04:00
|
|
|
"plugin_method"
|
|
|
|
|
inner join "plugin" on "plugin"."id" = "plugin_method"."pluginId"
|
|
|
|
|
order by
|
|
|
|
|
"plugin_method"."name"
|