mirror of
https://codeberg.org/ultimateplayer1999/Golang-phish-update.git
synced 2025-07-04 03:49:42 -04:00
33 lines
985 B
Markdown
33 lines
985 B
Markdown
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.
|
|
|
|
```text
|
|
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:
|
|
|
|
```text
|
|
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
|
|
```
|