MCPcopy Index your code
hub / github.com/PumpkinSeed/sqlfuzz

github.com/PumpkinSeed/sqlfuzz @v0.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.0 ↗ · + Follow
85 symbols 246 edges 15 files 22 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SQLfuzz

Go Report Card GoDoc License made-with-Go sqlfuzz test workflow

Load random data into SQL tables for testing purposes. The tool can get the layout of the SQL table and fill it up with random data.

Installation

MacOS

wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_darwin_amd64 -O /usr/local/bin/sqlfuzz
chmod +x /usr/local/bin/sqlfuzz

Linux

# amd64 build
wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_linux_amd64 -O /usr/local/bin/sqlfuzz
chmod +x /usr/local/bin/sqlfuzz

# arm64 build
wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_linux_arm64 -O /usr/local/bin/sqlfuzz
chmod +x /usr/local/bin/sqlfuzz

Windows

You can download the Windows build here

Build from source

wget https://github.com/PumpkinSeed/sqlfuzz/archive/{RELEASE}.zip
# unzip
# cd into dir
go install main.go

Usage

# MySQL
sqlfuzz -u username -p password -d database -h 127.0.0.1 -t table -n 100000 -w 100

# Postgres
sqlfuzz -u username -p password -d database -h 127.0.0.1 -t table -n 100000 -w 100 -P 5432 -D postgres

Flags

  • u: User for database connection
  • p: Password for database connection
  • d: Database name for database connection
  • h: Host for database connection
  • P: Port for database connection
  • D: Driver for database connection (supported: mysql, postgres)
  • t: Table for fuzzing
  • n: Number of rows to fuzz
  • w: Concurrent workers to work on fuzzing

Package usage

TODO: Write package

Extension points exported contracts — how you extend this code

Driver (Interface)
Driver is the interface should satisfied by a certain driver [2 implementers]
drivers/entry.go
Testable (Interface)
(no doc) [2 implementers]
drivers/entry.go

Core symbols most depended-on inside this repo

length
called by 8
drivers/helpers.go
New
called by 7
drivers/entry.go
Connection
called by 7
pkg/connector/connector.go
Describe
called by 4
drivers/entry.go
TestTable
called by 4
drivers/entry.go
NewTestable
called by 4
drivers/entry.go
randomString
called by 4
pkg/action/action.go
Insert
called by 3
drivers/entry.go

Shape

Function 36
Method 34
Struct 12
Interface 2
TypeAlias 1

Languages

Go100%

Modules by API surface

drivers/entry.go20 symbols
drivers/postgres.go13 symbols
drivers/mysql.go13 symbols
pkg/action/action.go9 symbols
main_test.go7 symbols
pkg/fuzzer/runner.go5 symbols
drivers/postgres_example_test.go4 symbols
pkg/flags/flags.go3 symbols
drivers/sqlcommons.go3 symbols
pkg/connector/connector.go2 symbols
drivers/postgres_test.go2 symbols
main.go1 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add sqlfuzz \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact