Skip to content

sunpebble/quarry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,190 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quarry

Quarry app icon

Professional database manager for macOS β€” native, fast, and encrypted-database ready

Sunpebble cream, ink, and sun with Quarry's workbench calm: dense tables, crisp borders, and restrained accent use.

Release License Build Status Documentation

πŸš€ A native macOS database manager built with SwiftUI. Supports SQLite (including SQLCipher-encrypted databases), PostgreSQL, and MySQL β€” with schema/data comparison, diff-previewed editing, SSH tunnels, and full English/Chinese localization.

✨ Features

πŸ—„οΈ Database Management

  • SQLite & SQLCipher β€” open encrypted databases; passwords live in the macOS Keychain
  • PostgreSQL & MySQL β€” direct connections or through an SSH tunnel
  • Multiple sessions β€” several databases open side by side
  • Connection profiles β€” saved connections with one-click reconnect

✏️ Data Operations

  • Inline editing with pending-changes review before anything is written
  • Bulk edit / delete across selected rows
  • CSV / JSON import, CSV / JSON / SQL export
  • Mock data generator and demo database
  • Column statistics β€” top-value distribution for any column

πŸ“ Query Tools

  • SQL editor with query plan (EXPLAIN) view
  • Query library β€” history and saved queries, searchable
  • SQL log β€” every executed statement with timing
  • Full-database search across all tables

πŸ” Comparison

  • Schema compare between any two open sessions, with migration SQL
  • Data compare by primary key, with generated sync SQL (INSERT/UPDATE/DELETE)
  • Schema snapshots for point-in-time comparison

πŸ–ΌοΈ Visualization & UX

  • ER diagram of tables and foreign-key relationships
  • Maintenance tools β€” integrity check, optimize, vacuum, backup/restore
  • English & Chinese localization; native menus and keyboard shortcuts

πŸ“¦ Installation

Download the latest Quarry-*.zip from Releases (Apple Silicon, notarized), unzip, and drop Quarry.app into /Applications.

Build from Source

Requirements: macOS 14+, Xcode command line tools, Homebrew.

git clone https://github.com/sunpebble/quarry.git
cd quarry
brew install sqlcipher postgresql@16 mysql

swift run --package-path apps/swiftui   # development
swift test --package-path apps/swiftui  # tests

πŸ› οΈ Development

Project Structure

β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ swiftui/            # Native macOS app (SwiftPM)
β”‚   β”‚   β”œβ”€β”€ Sources/QuarryCore/     # Engines & pure logic (unit-tested)
β”‚   β”‚   β”œβ”€β”€ Sources/QuarrySwiftUI/  # SwiftUI interface
β”‚   β”‚   └── Tests/
β”‚   └── video/              # Remotion promo video
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ docs/               # VitePress documentation
β”‚   β”œβ”€β”€ cloudflare/         # Cloudflare Workers backend
β”‚   β”œβ”€β”€ license-api/        # Pro license API (Stripe)
β”‚   └── tsconfig/           # Shared TypeScript configs
└── pnpm-workspace.yaml     # pnpm workspace configuration

Available Scripts

pnpm dev          # swift run (the macOS app)
pnpm build        # swift build
pnpm test         # swift test
pnpm lint         # eslint (workers & docs code)
pnpm typecheck    # cloudflare + license-api
pnpm docs:dev     # docs site

🀝 Contributing

Please read CONTRIBUTING.md for guidelines on code style, testing, commit format, and the PR process.

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.

πŸ”’ Security

Found a vulnerability? Please see our Security Policy for responsible disclosure guidelines.


Built with ❀️ by the Quarry team
Documentation β€’ Issues β€’ Discussions β€’ Releases

About

Professional database manager with SQLCipher support and diff preview

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors