Binary path

This commit is contained in:
DataHoarder 2022-01-16 11:07:35 +01:00
parent f5df661a53
commit 561f7f2c74
2 changed files with 2 additions and 5 deletions

View file

@ -1,5 +1,5 @@
CREATE TABLE entries ( CREATE TABLE entries (
path TEXT PRIMARY KEY, path BYTEA PRIMARY KEY,
size BIGINT, size BIGINT,
sha256 BYTEA NOT NULL, sha256 BYTEA NOT NULL,
md5 BYTEA NOT NULL md5 BYTEA NOT NULL

View file

@ -7,8 +7,5 @@ if [[ "$1" != "" ]]; then
DIR="$1" DIR="$1"
fi fi
#find "${DIR}" -type f | docker-compose run srg -format postgres -pg_table entries -pg_mode insert -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db" find "${DIR}" -type f | docker-compose run --rm srg -format postgres -pg_table entries -pg_mode insert_binary -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
#find "${DIR}" -type f | docker-compose run srg -format text -pg_binary true -pg_table entries -pg_mode insert -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"
#exit 0
find "${DIR}" -type f | docker-compose run srg -format postgres -pg_table entries -pg_mode insert_binary -pg_connstr "user=orbeat password=orbeat dbname=orbeat sslmode=disable host=db"