// STRYKE-MYSQL — MYSQL / MARIADB CLIENT FOR STRYKE // OPT-IN PACKAGE

stryke package · CLI launcher mysql · Rust helper stryke-mysql-helper · opt-in (kept out of stryke core)

Report GitHub Issues
// Color scheme

>_STRYKE-MYSQL

SQL without the connection ceremony. MySQL / MariaDB client for stryke. Opt-in package, kept out of the stryke core binary so the daily-driver install stays slim. Output is NDJSON-by-default for shell pipelines.

Install

# build the helper binary, install as a stryke package
cd ~/projects/stryke-mysql
cargo build --release
s pkg install -g .

# one-liner
make install

# verify
mysql --help

After install, mysql --help works from anywhere on PATH (assuming ~/.stryke/bin/ is on PATH). The stryke library is auto-discoverable to any project that depends on the package via [deps] mysql = { path = "..." } or, when published, by name.

CLI: mysql

query a databasemysql query --dsn mysql://user:pw@host/db 'SELECT id, email FROM users LIMIT 10'
execute a statementmysql exec 'UPDATE users SET active=1 WHERE id=42'
import CSVmysql import users --file users.csv
export NDJSONmysql query 'SELECT * FROM events WHERE day=CURDATE()' > today.ndjson
show schemamysql describe users

The full flag matrix lives in the README "CLI" section.

Why a package, not a builtin

The mysql crate pulls in a native libmysql-style protocol stack + TLS chains. Bundled once, opt-in.

The stryke side is a thin NDJSON-pipe wrapper; the heavy code lives in the stryke-mysql-helper sidecar binary and is loaded on demand. Core stryke is never linked against this package's deps.

Helper protocol

The stryke-mysql-helper sidecar speaks newline-delimited JSON over stdin/stdout. The stryke library shells out per call and pipes structured data both ways. This keeps stryke startup small while making the package's surface area available on demand.

# manual invocation (debugging only)
echo '{"op":"version"}' | stryke-mysql-helper

Layout

stryke-mysql/
├── Cargo.toml             # bin = stryke-mysql-helper (publish = false)
├── src/
│   └── main.rs           # helper binary entry point
├── lib/                   # stryke .stk wrapper(s)
├── stryke.toml            # stryke package manifest
├── t/                     # zunit-style tests
├── examples/              # runnable .stk examples
├── Makefile               # `make install` builds + installs
└── docs/                  # this site (GitHub Pages)

Sibling packages

Part of the stryke connector family. Browse the others via the MenkeTechnologiesMeta umbrella repo (Tier 2):