Compare commits

...

2 Commits

4 changed files with 17 additions and 2 deletions

View File

@ -15,4 +15,17 @@ The following code is needed in a .env. This is for the DB connection.
This is based on the phish table. Table can also be changed if needed.
Execution time is *1h24m16.934194673s*. This was for **18811 records**.
Execution time is *1h23m35.23654842s*. This was for **18855 records**.
Sample output with all defined 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

View File

@ -16,6 +16,8 @@ import (
)
func main() {
// Clear the screen
fmt.Print("\033[2J")
// Load environment variables from .env file
err := godotenv.Load()
if err != nil {

Binary file not shown.

2
go.mod
View File

@ -1,4 +1,4 @@
module skywolf.nl/domain-db-updater
module domain-db-updater
go 1.19