MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / getPluginCount

Function getPluginCount

app/src/sqlite/plugin.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 return plugins.map(pluginEntityToDomain)
32 },
33 async getPluginCount() {
34 const plugins = await ky
35 .selectFrom('plugin')
36 .select(ky.fn.count<SqliteCount>('name').as('c'))
37 .executeTakeFirstOrThrow()
38 return plugins.c
39 },
40 async deletePlugin(name: PluginName) {
41 await ky.deleteFrom('plugin').where('name', '=', name).execute()
42 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected