Toolverse
All skills

cloudbase-document-database-in-wechat-miniprogram

by TencentCloudBase

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
DevOps
Views
5

About this skill

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.

How to use

  1. Zainicjuj referencję bazy danych w swoim projekcie WeChat MiniProgram, wywołując wx.cloud.database() w celu uzyskania dostępu do domyślnego środowiska lub podając parametr env, aby połączyć się z konkretnym środowiskiem (np. test).

  2. Utwórz definicje typów i warstwę modelu dla każdej kolekcji w bazie danych. Jest to kluczowe dla uniknięcia błędów i zapewnienia spójności schematu — każda kolekcja powinna mieć odpowiadającą jej definicję typu danych.

  3. Uzyskaj dostęp do kolekcji za pomocą db.collection('nazwa-kolekcji') i pobierz operatory zapytań poprzez const _ = db.command, które umożliwiają wykonywanie zaawansowanych filtrów.

  4. Wykonaj operacje CRUD: twórz nowe dokumenty, pobieraj istniejące dane za pomocą zapytań, aktualizuj pola dokumentów i usuwaj rekordy, korzystając z dostępnych metod SDK.

  5. Dla większych zbiorów danych zastosuj paginację, aby ograniczyć liczbę zwracanych rekordów, oraz agregację do obliczania statystyk lub grupowania wyników.

  6. Jeśli potrzebujesz dostępu do informacji użytkownika w funkcjach chmurowych, użyj wxContext.OPENID, które jest automatycznie dostępne bez dodatkowego uwierzytelniania.

Related skills

clawhub

by openclaw

Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawhub CLI.

DevOps
14106

postmortem-writing

by wshobson

Write effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents, or improving incident response processes.

DevOps
1385

cloudflare-manager

by qdhenry

Comprehensive Cloudflare account management for deploying Workers, KV Storage, R2, Pages, DNS, and Routes. Use when deploying cloudflare services, managing worker containers, configuring KV/R2 storage, or setting up DNS/routing. Requires CLOUDFLARE_API_KEY in .env and Bun

DevOps
20122

unity-developer

by sickn33

Build Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deployment. Handles gameplay systems, UI implementation, and platform optimization. Use PROACTIVELY for Unity performance

DevOps
66164

file-organizer

by ComposioHQ

Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.

DevOps
1399

crawl4ai

by basher83

This skill should be used when users need to scrape websites, extract structured data, handle JavaScript-heavy pages, crawl multiple URLs, or build automated web data pipelines. Includes optimized extraction patterns with schema generation for efficient, LLM-free extraction.

DevOps
11128