feat: Add command which writes a tar file's headers into a SQLite database index

This commit is contained in:
Felicitas Pojtinger
2021-11-14 15:01:16 +01:00
parent d5577a5398
commit 9014286405
5 changed files with 137 additions and 12 deletions

View File

@@ -55,7 +55,11 @@ create table headers (
-- If the format is unspecified when Writer.WriteHeader is called,
-- then it uses the first format (in the order of USTAR, PAX, GNU)
-- capable of encoding this Header (see Format).
format text not null
format integer not null,
-- The record on the tape
record integer not null,
-- The header's block in the record
block integer not null
);
-- +migrate Down
drop table headers;