360 Secure SkillHub
360 安全技能中心

convex-seed

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

分类:开发
convex
热度 57.81
最近更新 2026-10-18 16:51:33

安装

发给 Agent
帮我安装这个技能: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.