aschampion / aschampion/schemer

schemer-cli

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Tom suggested a simple CLI. I agree this would be useful for trivial projects where migrations are serializable as SQL.

- [ ] schemer-cli crate
- [ ] optional adapter trait for creating an adapter instance from command line args
- [ ] optional adapter trait for creating migrations from files in directories
- [ ] this could be based on a simple metadata TOML, or even just filenames like `[id].[one or more dependency ids].up.sql` for Postgres adapter
- [ ] inclusion of each adapter would be a feature on the schemer-cli crate

Would make standalone use as trivial as
```sh
cargo install schemer-cli --features postgres
schemer -a postgres:'localhost/mydb' up [directory of migrations]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by reviewing the existing crate structure and the proposed schemer-cli entry point, then map the checklist for adapter arguments, migration files, metadata or filenames, and feature-gated adapters; done means the documented cargo install and schemer command work for the Postgres example.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, rust
Domain
cli, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.