add Valkey configuration and connection management

This commit is contained in:
pigwin
2025-01-06 20:47:55 +00:00
parent c456bdecdb
commit c6fc0070cf
7 changed files with 163 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ func InsertOrUpdateEstimatedCall(db *sql.DB, values []interface{}) (int, string,
hashString := hex.EncodeToString(hash[:])
println(hashString)
estimatedVehicleJourneyID := values[0]
orderID := values[1]
fmt.Printf("Estimated Vehicle Journey ID: %v, Order ID: %v\n", estimatedVehicleJourneyID, orderID)
query := `
INSERT INTO calls (
estimatedvehiclejourney, "order", stoppointref,