moonfire-nvr/db/upgrade
Scott Lamb e8eb764b90 switch from docopt to structopt
A couple reasons for this:

* the docopt crate is "unlikely to see significant future evolution",
  and the wider docopt project is "mostly unmaintained at this point".
  clap/structopt is more full-featured, has more natural subcommand
  support, etc.

* it may allow me to shrink the binary (#70). This change alone seems
  to be a slight regression, but it's a step toward getting rid of
  regex, which is pretty large. And I feel less ridiculous now that I
  don't have two parsing crates anyway; prettydiff was pulling in
  structopt.

There are some behavior changes here:

* misc --help output changes and such as you'd expect from switching
  argument-parsing libraries

* I properly used PathBuf and OsString for stuff that theoretically
  could be non-UTF-8. I haven't tested that it actually made any
  difference. I'm also still storing the sample file dirname as "text"
  in the database to avoid causing a diff when not doing a schema
  change.
2020-04-17 21:53:37 -07:00
..
mod.rs switch from docopt to structopt 2020-04-17 21:53:37 -07:00
v0_to_v1.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
v0.sql upgrade copyright notices 2020-03-01 22:53:41 -08:00
v1_to_v2.rs switch from docopt to structopt 2020-04-17 21:53:37 -07:00
v1.sql upgrade copyright notices 2020-03-01 22:53:41 -08:00
v2_to_v3.rs style: use rusqlite's {named_,}params! everywhere 2020-03-19 20:46:25 -07:00
v3_to_v4.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00
v3.sql upgrade copyright notices 2020-03-01 22:53:41 -08:00
v4_to_v5.rs upgrade copyright notices 2020-03-01 22:53:41 -08:00