360 Secure SkillHub
360 安全技能中心

convex-seed

通过 internalMutation 种子函数或 Convex 导入命令向数据库播种/导入数据,要求匹配 schema、可重复执行并校验行数;不得向共享部署写入密钥或个人数据。

convex
热度 0.00
最近更新 2026-10-18 16:51:33
分类:开发依赖:代码执行应用场景:代码生成 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add convex/agent-skills/convex-seed
Metadata
name
convex-seed
description
Seed or import data into the Convex database.

Seed / import data

Populate tables via an internalMutation seed function (re-runnable) or npx convex import, matching the schema.

Workflow

  1. For fixtures: write an internalMutation that inserts sample rows; run it with npx convex run.
  2. For bulk import: shape the data to the schema and use npx convex import.
  3. Make seeding idempotent (clear-then-insert or upsert) so re-running is safe.
  4. Verify row counts.

Rules

  • Seed via internalMutation or convex import, matching validators.
  • Make seeding idempotent.
  • Never seed secrets/PII into a shared deployment.