Skip to content

Commit

Permalink
aug 10
Browse files Browse the repository at this point in the history
  • Loading branch information
egorkaway committed Aug 10, 2024
1 parent e251971 commit 32c1da8
Show file tree
Hide file tree
Showing 17 changed files with 13,335 additions and 12,527 deletions.
9 changes: 6 additions & 3 deletions code/data2l7.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ package main
import (
"database/sql"
"log"
"os"

"github.com/joho/godotenv"
_ "github.com/lib/pq"
h3 "github.com/uber/h3-go/v3"
)

const (
// New database connection URL
postgresURL = "postgresql://postgres.ylbjmqqjqifpfqcwtrpn:[email protected]:6543/postgres?sslmode=require"
)

func loadEnv() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
log.Println("Error loading .env file, proceeding without it")
}
}

func connectDB() (*sql.DB, error) {
postgresURL := os.Getenv("POSTGRES_URL")
if postgresURL == "" {
log.Fatal("POSTGRES_URL not set in environment variables")
}
Expand Down
86 changes: 0 additions & 86 deletions code/debug.go

This file was deleted.

107 changes: 0 additions & 107 deletions code/generate_parents.go

This file was deleted.

91 changes: 0 additions & 91 deletions code/generate_weather_filtered.go

This file was deleted.

Loading

0 comments on commit 32c1da8

Please sign in to comment.