Skip to content
bikeshedderPublic

About

PostgreSQL schema diffing, migration running, and type-safe queries.

Topics

Resources

Stars

18 stars

Watchers

1 watching

Forks

Repository files navigation

Tusker Latest Version Build Status Unsafe forbidden Rust 1.88+

Tusker is a Rust project for PostgreSQL schema diffing, migration running, and type-safe queries.

The project contains the core building blocks behind the tusker CLI: a schema diff engine, an embeddable migration runner, and a small query layer with derive-based SQL bindings.

Installation

Install from crates.io:

cargo install tusker

Download a prebuilt release binary from the GitHub Releases page:

https://github.com/bikeshedder/tusker/releases

Container images for tagged tusker releases are published to ghcr.io/bikeshedder/tusker.

For example:

docker run --rm ghcr.io/bikeshedder/tusker:0.6.1 --help

Important Crates

  • tusker: the main CLI crate for schema diffing, migration workflows, and query metadata tooling
  • tusker-schema: PostgreSQL schema inspection and diff engine
  • tusker-migration: embeddable PostgreSQL migration runner for SQL migration files
  • tusker-query: lightweight query layer on top of tokio-postgres
  • tusker-query-derive: proc-macro derives for tusker-query
  • tusker-query-models: shared models for checked query metadata and type information

Project Layout

  • crates/: main project crates
  • examples/: example applications using tusker-* crates

If you want the end-user CLI documentation, installation notes, and the current feature/progress overview, start with crates/tusker/.

License

Licensed under either of

at your option.

About

PostgreSQL schema diffing, migration running, and type-safe queries.

Topics

Resources

Stars

18 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages