postgres-switch #113

Merged
lash merged 14 commits from postgres-switch into master 2024-10-22 16:04:56 +02:00
Member
  • Add and use env variables
  • Add the option of switching to postgres using the db flag
- Add and use env variables - Add the option of switching to postgres using the db flag
Alfred-mk added 2 commits 2024-10-15 22:57:16 +02:00
Alfred-mk added 1 commit 2024-10-16 10:38:49 +02:00
Alfred-mk added 2 commits 2024-10-17 11:48:03 +02:00
Alfred-mk added 1 commit 2024-10-17 11:49:44 +02:00
Alfred-mk changed title from WIP: postgres-switch to postgres-switch 2024-10-17 11:50:14 +02:00
Alfred-mk requested review from lash 2024-10-17 11:50:30 +02:00
Alfred-mk added 1 commit 2024-10-17 11:55:52 +02:00
Alfred-mk added 1 commit 2024-10-17 14:35:48 +02:00
Alfred-mk added a new dependency 2024-10-18 09:27:53 +02:00
Alfred-mk added a new dependency 2024-10-18 10:48:37 +02:00
lash requested changes 2024-10-18 15:49:47 +02:00
@ -0,0 +1,34 @@
package initializers
Owner

I think convention is that file names in go be kept simple words. load.go will do

I think convention is that file names in go be kept simple words. load.go will do
Alfred-mk marked this conversation as resolved
@ -0,0 +12,4 @@
pdbC map[string]chan db.Db
)
type ThreadPostgresDb struct {
Owner

i dont think you need the thread abstraction here, because the pg implementation used is already a managed connection pool. did you try it without?

i dont think you need the thread abstraction here, because the pg implementation used is already a managed connection pool. did you try it without?
Alfred-mk marked this conversation as resolved
@ -60,1 +71,4 @@
return nil, fmt.Errorf("failed to select the database")
}
if database == "postgres" {
Owner

postgres shouold be implemented for both userdatatstore and state store

postgres shouold be implemented for both userdatatstore and state store
Alfred-mk marked this conversation as resolved
Alfred-mk added 1 commit 2024-10-19 12:41:55 +02:00
Alfred-mk added 1 commit 2024-10-19 13:51:50 +02:00
Alfred-mk added 1 commit 2024-10-19 14:27:30 +02:00
Alfred-mk added 1 commit 2024-10-19 14:29:29 +02:00
Alfred-mk requested review from lash 2024-10-19 14:31:41 +02:00
lash requested changes 2024-10-19 16:13:16 +02:00
@ -0,0 +1,74 @@
package storage
Owner

as we spoke about in meeting, i believe this file could be removed, and use the db from go-vise directly.

as we spoke about in meeting, i believe this file could be removed, and use the db from go-vise directly.
Author
Member

Confirmed. This has been done

Confirmed. This has been done
Alfred-mk marked this conversation as resolved
Alfred-mk added 1 commit 2024-10-19 22:07:17 +02:00
Alfred-mk requested review from lash 2024-10-19 22:08:20 +02:00
Alfred-mk added 1 commit 2024-10-21 08:22:35 +02:00
lash removed a dependency 2024-10-22 16:04:47 +02:00
lash removed a dependency 2024-10-22 16:04:52 +02:00
lash merged commit 59d0446020 into master 2024-10-22 16:04:56 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#113
No description provided.