MCPcopy Create free account
hub / github.com/Botloader/botloader / batch_update_plugins_stats

Method batch_update_plugins_stats

components/stores/src/config.rs:859–867  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

857 }
858
859 pub async fn batch_update_plugins_stats(&self) -> ConfigStoreResult<()> {
860 sqlx::query!(
861 r#"UPDATE plugins SET installed_guilds = (SELECT COUNT(*) FROM guild_scripts WHERE plugin_id = plugins.id);"#,
862 )
863 .execute(&self.pool)
864 .await?;
865
866 Ok(())
867 }
868
869 pub async fn upsert_plugin_image(
870 &self,

Callers 1

runMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected