grate

Crates.iograte
lib.rsgrate
version1.0.0
sourcesrc
created_at2023-03-15 20:38:08.060736
updated_at2024-04-11 15:21:01.017872
descriptiona simple cli for generating migration files
homepagehttps://github.com/shayneo/grate
repositoryhttps://github.com/shayneo/grate
max_upload_size
id810969
size21,837
Shayne O'Sullivan (shayneo)

documentation

README

grate

A simple sql migrations file gen tool

example

grate --name party --path migrations
✅ created ./migrations/1678912821_party.up.sql
✅ created ./migrations/1678912821_party.down.sql

params

  • name - required. the name of the migration, will be appended to the file name after the timestamp.
  • path - optional. defaults to ./migrations. will generate a new directory if non exists.
  • format - optional. defaults to auto. Options are auto, unix, datetime, milli, int. Determines the format of the file prefix (ie {prefix}_{name}.up.sql). When using the auto format, the tool looks into the path you supplied and finds the most recent file, then uses that convention.
Commit count: 10

cargo fmt