adrielc/helios-alpha/golem-add-mysql-rust

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Using golem:rdbms/mysql from a Rust Golem agent. Use when the user asks to connect to MySQL, run SQL, execute a MySQL transaction, or use MySQL from Rust agent code.

Install

npx vskill@latest install adrielc/helios-alpha/golem-add-mysql-rust

SKILL.md

Using MySQL from a Rust Agent

golem-rust already exposes the host bindings for golem:rdbms/mysql@1.5.0, so you do not need an extra crate.

Imports

rust
use golem_rust::bindings::golem::rdbms::mysql::{
DbConnection,
DbValue,
};

Open a Connection

rust
let conn = DbConnection::open("mysql://user:password@localhost:3306/app")
.map_err(|err| format!("{err:?}"))?;

If the user asks for a method that returns a plain String, keep the public method signature as String and handle host errors inside the method with expect(...) or panic!(...) rather than changing the signature to Result<String, _>.

Query Data

MySQL placeholders use ?.

rust
let result = conn
.query(
"SELECT ?",
vec![DbValue::Varchar("hello".to_string())],
)
.map_err(|err| format!("{err:?}"))?;
let row = result.rows.first().ok_or("query returned no rows")?;
let value = row.values.first().ok_or("query returned no columns")?;
let message = match value {
DbValue::Varchar(value)
| DbValue::Text(value)
| DbValue::Tinytext(value)
| DbValue::Mediumtext(value)
| DbValue::Longtext(value)
| DbValue::Fixchar(value) => value.clone(),
other => return Err(format!("unexpected MySQL value: {other:?}")),
};

Execute Statements

rust
let affected = conn
.execute(
"INSERT INTO notes (id, body) VALUES (?, ?)",
vec![DbValue::Int(1), DbValue::Varchar("hello".to_string())],
)
.map_err(|err| format!("{err:?}"))?;

Transactions

rust
let tx = conn.begin_transaction().map_err(|err| format!("{err:?}"))?;
tx.execute(
"UPDATE notes SET body = ? WHERE id = ?",
vec![DbValue::Varchar("updated".to_string()), DbValue::Int(1)],
)
.map_err(|err| format!("{err:?}"))?;
tx.commit().map_err(|err| format!("{err:?}"))?;

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/adrielc/helios-alpha/golem-add-mysql-rust/badge)](https://verified-skill.com/skills/adrielc/helios-alpha/golem-add-mysql-rust)

Something wrong with this skill or its page? Tell us.