mirror of
https://codeberg.org/ultimateplayer1999/Golang-phish-update.git
synced 2024-12-27 12:18:22 -05:00
Golang phish table updater
.gitignore | ||
dbupdate.go | ||
domain-db-updater | ||
go.mod | ||
go.sum | ||
LICENSE | ||
README.md |
A free to use update tool which checks phish.sinking.yachts database. It adds all domains found after custom domains are added. If not needed they can be commented or removed.
The following code is needed in a .env. This is for the DB connection.
DB_HOST=
DB_PORT=
DATABASE=
DB_USER=
DB_PASS=
This is based on the phish table. Table can also be changed if needed.
Execution time is 1h23m35.23654842s. This was for 18855 records.
Sample output with provided code:
Script started at 11-01-2023 10:11:17
Deletion: Number of rows affected: 2
Altering: Number of rows affected: 0
Insert: Number of rows affected: 1
Insert: Number of rows affected: 1
11-01-2023 10:11:18: Initial database table setup done
Status code: 200
Total number of rows affected: 18855
Recent changes recieved and has been added to the database. Removed domains deleted from database. Reorded domains.
Script ended at 11-01-2023 11:34:52
Time until completion: 1h23m35.23654842s