Skip to content

Commit 2f1943b

Browse files
committed
db name
1 parent 7f0247c commit 2f1943b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dbos/system_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ func NewSystemDatabase() (SystemDatabase, error) {
122122
// TODO: pass proper config
123123
databaseURL := os.Getenv("DBOS_DATABASE_URL")
124124
if databaseURL == "" {
125-
fmt.Println("DBOS_DATABASE_URL not set, using default: postgres://postgres:${PGPASSWORD}@localhost:5432/postgres?sslmode=disable")
125+
fmt.Println("DBOS_DATABASE_URL not set, using default: postgres://postgres:${PGPASSWORD}@localhost:5432/dbos?sslmode=disable")
126126
password := url.QueryEscape(os.Getenv("PGPASSWORD"))
127-
databaseURL = fmt.Sprintf("postgres://postgres:%s@localhost:5432/postgres?sslmode=disable", password)
127+
databaseURL = fmt.Sprintf("postgres://postgres:%s@localhost:5432/dbos?sslmode=disable", password)
128128
}
129129

130130
// Create the database if it doesn't exist

dbos/utils_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ func setupDBOS(t *testing.T) {
1818

1919
databaseURL := os.Getenv("DBOS_DATABASE_URL")
2020
if databaseURL == "" {
21-
fmt.Println("DBOS_DATABASE_URL not set, using default: postgres://postgres:${PGPASSWORD}@localhost:5432/postgres?sslmode=disable")
21+
fmt.Println("DBOS_DATABASE_URL not set, using default: postgres://postgres:${PGPASSWORD}@localhost:5432/dbos?sslmode=disable")
2222
password := url.QueryEscape(os.Getenv("PGPASSWORD"))
23-
databaseURL = fmt.Sprintf("postgres://postgres:%s@localhost:5432/postgres?sslmode=disable", password)
23+
databaseURL = fmt.Sprintf("postgres://postgres:%s@localhost:5432/dbos?sslmode=disable", password)
2424
}
2525

2626
// Clean up the test database

0 commit comments

Comments
 (0)