diff --git a/README.md b/README.md index fe80c69..d86742c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/dbupdate.go b/dbupdate.go index 6f9c112..8909a5a 100644 --- a/dbupdate.go +++ b/dbupdate.go @@ -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 { diff --git a/domain-db-updater b/domain-db-updater index 1767e60..5dc8093 100755 Binary files a/domain-db-updater and b/domain-db-updater differ