Ryan Heywood 6028c4794f | ||
---|---|---|
bloom-filter-generator | ||
mnemonic-hash-checker | ||
mock | ||
postgres | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md |
README.md
Milk Sad Lookup
Insert many rows of sha256 hashes into a Postgres database.
- Install
postgress-client
:
sudo apt install postgres-client
- Install Docker
- Install Python dependencies:
pip install psycopg2
- Run the database via Docker:
./mock/postgres.sh
- Configure the database:
- Log into
psql shell
:
psql -h localhost -p 5432 -U postgres
Password: test
- Create Database, table, and index:
postgres=# CREATE DATABASE hashes;
postgres=# \c hashes;
hashes=# CREATE TABLE hashes(id BYTEA);
hashes=# CREATE INDEX hashes_id on hashes(id);
- Hammer time:
./mock/insert_into.py