Revert "Add the module name after the path to the repo and simply name it ersteller"
This reverts commit a1b93c0eba.
This commit is contained in:
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.gorlug.de/code/golang/ersteller-lib/ersteller"
|
||||
"git.gorlug.de/code/golang/ersteller-lib"
|
||||
"github.com/joho/godotenv"
|
||||
"os"
|
||||
)
|
||||
@@ -10,13 +10,13 @@ import (
|
||||
func main() {
|
||||
err := godotenv.Load()
|
||||
if err != nil {
|
||||
ersteller.LogError("Error loading .env file: %v", err)
|
||||
ersteller_lib.LogError("Error loading .env file: %v", err)
|
||||
panic(err)
|
||||
}
|
||||
dbUrl := os.Getenv("DATABASE_URL")
|
||||
connpool, err := ersteller.CreatePostgresConnpool(dbUrl)
|
||||
connpool, err := ersteller_lib.CreatePostgresConnpool(dbUrl)
|
||||
if err != nil {
|
||||
ersteller.LogError("Failed to create connection pool: %v", err)
|
||||
ersteller_lib.LogError("Failed to create connection pool: %v", err)
|
||||
panic(err)
|
||||
}
|
||||
// https://medium.com/israeli-tech-radar/postgresql-trigger-based-audit-log-fd9d9d5e412c
|
||||
@@ -133,7 +133,7 @@ CREATE OR REPLACE TRIGGER audit_log_trigger
|
||||
`
|
||||
_, err = connpool.Exec(context.Background(), sql)
|
||||
if err != nil {
|
||||
ersteller.LogError("Failed to create audit log table: %v", err)
|
||||
ersteller_lib.LogError("Failed to create audit log table: %v", err)
|
||||
panic(err)
|
||||
}
|
||||
println("Created audit log table")
|
||||
|
||||
Reference in New Issue
Block a user