golemcloud/golem/golem-add-turso-rust

Trust tier 2
  • community
LLM review pending
Source check pending

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

Use the Turso Rust crate for an in-memory embedded SQL database in a Rust Golem agent. Use when asking for Turso, local Turso SQL, or the proven WASI-compatible Turso configuration.

Install

npx vskill@latest install golemcloud/golem/golem-add-turso-rust

SKILL.md

Using In-Memory Turso from Rust

The currently proven configuration runs Turso's pure-Rust in-memory database inside a wasm32-wasip2 Golem agent. It proves local SQL execution, not Turso Cloud connectivity, file-backed persistence, or automatic database snapshotting.

Add the dependency

Disable default features; they include native-oriented functionality that this use case does not need:

toml
[dependencies]
turso = { version = "=0.8.0-pre.11", default-features = false }

Turso 0.8.0-pre.11 is a prerelease and does not claim WASI Preview 2 as a supported target. Pin the exact version and retest builds and runtime behavior before upgrading.

Proven pattern

rust
use golem_rust::{agent_definition, agent_implementation};
#[agent_definition(ephemeral)]
pub trait TursoAgent {
fn new(name: String) -> Self;
async fn round_trip(&self, value: String) -> String;
}
struct TursoAgentImpl;
#[agent_implementation]
impl TursoAgent for TursoAgentImpl {
fn new(_name: String) -> Self {
Self
}
async fn round_trip(&self, value: String) -> String {
let database = turso::Builder::new_local(":memory:")
.with_io(turso::IoBackend::Memory)
.build()
.await
.expect("failed to create in-memory Turso database");
let connection = database.connect().expect("failed to connect to Turso");
connection
.execute(
"CREATE TABLE messages (id INTEGER PRIMARY KEY, value TEXT NOT NULL)",
(),
)
.await
.expect("failed to create table");
connection
.execute("INSERT INTO messages (value) VALUES (?1)", [value])
.await
.expect("failed to insert row");
let mut rows = connection
.query("SELECT value FROM messages WHERE id = 1", ())
.await
.expect("failed to query row");
let row = rows
.next()
.await
.expect("failed to read row")
.expect("query returned no row");
row.get(0).expect("failed to decode value")
}
}

Limitations

  • IoBackend::Memory stores the whole database in WebAssembly linear memory. The database, query

results, caches, and the agent itself share the account's per-agent memory limit. Inspect it with golem account limits show.

  • This pattern creates a fresh database per invocation and uses no agent disk. It does not prove

durable database state, recovery, file-backed Turso, or remote Turso service access.

  • Treat this as an experimental option and keep an integration test around the SQL operations the

agent depends on. Prefer embedded SQLite for the documented file-backed and snapshot-integrated paths, or an external database for shared data.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

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/golemcloud/golem/golem-add-turso-rust/badge)](https://verified-skill.com/skills/golemcloud/golem/golem-add-turso-rust)

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