Skip to content

schemer-cli #3

@aschampion

Description

@aschampion

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

cargo install schemer-cli --features postgres
schemer -a postgres:'localhost/mydb' up [directory of migrations]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions