Coder Rust Sqlx Config

🌐Community
by ozerohax · vlatest · Repository

Generates Rust code using sqlx for database connections and configuration based on provided schema and requirements.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add coder-rust-sqlx-config npx -- -y @trustedskills/coder-rust-sqlx-config
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "coder-rust-sqlx-config": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/coder-rust-sqlx-config"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill configures SQLx, a Rust library for asynchronous database access. It handles setting up connection pools, defining database schemas, and managing migrations within a Rust project. The agent can generate configuration files or modify existing ones to ensure proper database integration.

When to use it

  • Setting up a new Rust backend project that requires database interaction.
  • Configuring SQLx for specific database types (e.g., PostgreSQL, MySQL).
  • Generating migration scripts and applying them to the database schema.
  • Troubleshooting connection pool issues or other SQLx configuration problems.
  • Automating repetitive tasks related to database setup in a Rust project.

Key capabilities

  • SQLx connection pool configuration
  • Database schema definition
  • Migration script generation
  • Database migration execution

Example prompts

  • "Configure SQLx for PostgreSQL with a connection pool size of 10."
  • "Generate a database migration to add a new column 'email' to the users table."
  • "Apply pending database migrations using SQLx."

Tips & gotchas

This skill requires a basic understanding of Rust and SQLx. Ensure that the necessary dependencies are added to your Cargo.toml file before utilizing this skill.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
ozerohax
Installs
3

🌐 Community

Passed automated security scans.