Rename module to new repository root

This commit is contained in:
Achim Rohn
2025-11-15 12:04:39 +01:00
parent 7d213824cf
commit 18d05566e2
85 changed files with 251 additions and 251 deletions
+5 -5
View File
@@ -2,7 +2,7 @@ package main
import (
"context"
"ersteller-lib"
"git.gorlug.de/code/ersteller"
"github.com/joho/godotenv"
"os"
)
@@ -10,13 +10,13 @@ import (
func main() {
err := godotenv.Load()
if err != nil {
ersteller_lib.LogError("Error loading .env file: %v", err)
ersteller.LogError("Error loading .env file: %v", err)
panic(err)
}
dbUrl := os.Getenv("DATABASE_URL")
connpool, err := ersteller_lib.CreatePostgresConnpool(dbUrl)
connpool, err := ersteller.CreatePostgresConnpool(dbUrl)
if err != nil {
ersteller_lib.LogError("Failed to create connection pool: %v", err)
ersteller.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_lib.LogError("Failed to create audit log table: %v", err)
ersteller.LogError("Failed to create audit log table: %v", err)
panic(err)
}
println("Created audit log table")