rename database to postgressql

This commit is contained in:
gitGnome
2026-04-13 08:06:41 +02:00
parent 554b7c338a
commit 6435206683
6 changed files with 29 additions and 30 deletions
+5 -5
View File
@@ -70,7 +70,7 @@ func HttpHandleDm(response http.ResponseWriter, request *http.Request) {
Event: message,
})
err = DbConnectionMessageSave(ctx, message)
err = PgConnectionMessageSave(ctx, message)
if err != nil {
http.Error(response, "internal server error", http.StatusInternalServerError)
return
@@ -133,7 +133,7 @@ func HttpHandleUserGetConnectionMessages(response http.ResponseWriter, request *
if validBufCount > 0 {
cutoff = buffer[0].CreatedAt
}
dbMessages, err := DbConnectionGetMessagesBefore(ctx, cutoff, connectionId, remaining)
dbMessages, err := PgConnectionGetMessagesBefore(ctx, cutoff, connectionId, remaining)
if err != nil {
http.Error(response, "internal server error", http.StatusInternalServerError)
return
@@ -198,7 +198,7 @@ func HttpHandleUserNewConnection(response http.ResponseWriter, request *http.Req
RecipientId: recipient.Id,
State: ConnectionState.Stranger,
}
err = DbConnectionSave(ctx, connection)
err = PgConnectionSave(ctx, connection)
if err != nil {
http.Error(response, "internal server error", http.StatusInternalServerError)
return
@@ -258,7 +258,7 @@ func HttpHandleUserDeleteConnection(response http.ResponseWriter, request *http.
return
}
err = DbConnectionDelete(ctx, conn)
err = PgConnectionDelete(ctx, conn)
if err != nil {
http.Error(response, "internal server error", http.StatusInternalServerError)
return
@@ -309,7 +309,7 @@ func HttpHandleUserElevateConnection(response http.ResponseWriter, request *http
return
}
err = DbConnectionUpdateState(ctx, conn)
err = PgConnectionUpdateState(ctx, conn)
if err != nil {
http.Error(response, "internal server error", http.StatusInternalServerError)
return