Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

refactor(justfile): standardize DATABASE_URL to single database.justfile (#2948)

Will Hutchinson3d2748dc0d91
diff --git a/rust/cloud-storage/backfill_entity_access/justfile b/rust/cloud-storage/backfill_entity_access/justfile
index d7f13030d3..38c004ab6d 100644
--- a/rust/cloud-storage/backfill_entity_access/justfile
+++ b/rust/cloud-storage/backfill_entity_access/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/call/justfile b/rust/cloud-storage/call/justfile
index d7f13030d3..38c004ab6d 100644
--- a/rust/cloud-storage/call/justfile
+++ b/rust/cloud-storage/call/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/chat/justfile b/rust/cloud-storage/chat/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/chat/justfile
+++ b/rust/cloud-storage/chat/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/comms/justfile b/rust/cloud-storage/comms/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/comms/justfile
+++ b/rust/cloud-storage/comms/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/comms_db_client/justfile b/rust/cloud-storage/comms_db_client/justfile
index f1bec158c1..b7cfd602ec 100644
--- a/rust/cloud-storage/comms_db_client/justfile
+++ b/rust/cloud-storage/comms_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/contacts_db_client/justfile b/rust/cloud-storage/contacts_db_client/justfile
index e5b5d548ab..e7aa0af476 100644
--- a/rust/cloud-storage/contacts_db_client/justfile
+++ b/rust/cloud-storage/contacts_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/database.just b/rust/cloud-storage/database.just
new file mode 100644
index 0000000000..bea200819c
--- /dev/null
+++ b/rust/cloud-storage/database.just
@@ -0,0 +1,2 @@
+# Local dev database URL used by cloud-storage justfiles.
+DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
diff --git a/rust/cloud-storage/delete_chat_handler/justfile b/rust/cloud-storage/delete_chat_handler/justfile
index ae57d70f25..85949e8b5f 100644
--- a/rust/cloud-storage/delete_chat_handler/justfile
+++ b/rust/cloud-storage/delete_chat_handler/justfile
@@ -1,6 +1,6 @@
lambda_name := file_name(justfile_directory())
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
force_drop_db:
diff --git a/rust/cloud-storage/document_cognition_service/justfile b/rust/cloud-storage/document_cognition_service/justfile
index 7063a08e41..d98cd5a7c8 100644
--- a/rust/cloud-storage/document_cognition_service/justfile
+++ b/rust/cloud-storage/document_cognition_service/justfile
@@ -1,6 +1,6 @@
set dotenv-load := true
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
mod ci '../ci.just'
diff --git a/rust/cloud-storage/document_text_extractor/justfile b/rust/cloud-storage/document_text_extractor/justfile
index 5aa3eb6512..ff24798a4d 100644
--- a/rust/cloud-storage/document_text_extractor/justfile
+++ b/rust/cloud-storage/document_text_extractor/justfile
@@ -1,7 +1,7 @@
lambda_name := file_name(justfile_directory())
os := os()
macos_features := if os == "macos" { "--features macos" } else { "" }
-export DATABASE_URL := 'postgres://user:password@localhost:5432/macrodb'
+import '../database.just'
mod ci '../ci.just'
@@ -10,7 +10,7 @@ deploy-dev:
# Prepare database
prepare:
- cargo sqlx prepare
+ DATABASE_URL={{ DATABASE_URL }} cargo sqlx prepare
# Build lambda for deployment
build:
@@ -23,15 +23,15 @@ build:
# Run local development server with automatic OS detection
local:
- cargo lambda watch {{ macos_features }}
+ DATABASE_URL={{ DATABASE_URL }} cargo lambda watch {{ macos_features }}
# Run local development server specifically for Linux
local-linux:
- cargo lambda watch
+ DATABASE_URL={{ DATABASE_URL }} cargo lambda watch
# Run local development server specifically for MacOS
local-mac:
- cargo lambda watch --features macos
+ DATABASE_URL={{ DATABASE_URL }} cargo lambda watch --features macos
# Invoke lambda function with specified data file
invoke data_file="sample_input.json":
@@ -39,4 +39,4 @@ invoke data_file="sample_input.json":
# Run tests
test:
- cargo test
+ DATABASE_URL={{ DATABASE_URL }} cargo test
diff --git a/rust/cloud-storage/documents/justfile b/rust/cloud-storage/documents/justfile
index d7f13030d3..38c004ab6d 100644
--- a/rust/cloud-storage/documents/justfile
+++ b/rust/cloud-storage/documents/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/email/justfile b/rust/cloud-storage/email/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/email/justfile
+++ b/rust/cloud-storage/email/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/email_db_client/justfile b/rust/cloud-storage/email_db_client/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/email_db_client/justfile
+++ b/rust/cloud-storage/email_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/email_refresh_handler/justfile b/rust/cloud-storage/email_refresh_handler/justfile
index f7c05994bb..8d864c89d7 100644
--- a/rust/cloud-storage/email_refresh_handler/justfile
+++ b/rust/cloud-storage/email_refresh_handler/justfile
@@ -1,5 +1,7 @@
lambda_name := file_name(justfile_directory())
+import '../database.just'
+
test:
cargo test --all-features
@@ -13,4 +15,4 @@ create-queues:
AWS_REGION=us-east-1 aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name my-test-refresh-queue
prepare_db:
- DATABASE_URL=postgres://user:password@localhost:5432/macrodb cargo sqlx prepare
\ No newline at end of file
+ DATABASE_URL={{ DATABASE_URL }} cargo sqlx prepare
\ No newline at end of file
diff --git a/rust/cloud-storage/email_scheduled_handler/justfile b/rust/cloud-storage/email_scheduled_handler/justfile
index 135ba5c192..23e8a03bd6 100644
--- a/rust/cloud-storage/email_scheduled_handler/justfile
+++ b/rust/cloud-storage/email_scheduled_handler/justfile
@@ -1,5 +1,7 @@
lambda_name := file_name(justfile_directory())
+import '../database.just'
+
test:
cargo test --all-features
@@ -13,4 +15,4 @@ create-queues:
AWS_REGION=us-east-1 aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name sfs-delete-queue.fifo
prepare_db:
- DATABASE_URL=postgres://user:password@localhost:5432/macrodb cargo sqlx prepare
\ No newline at end of file
+ DATABASE_URL={{ DATABASE_URL }} cargo sqlx prepare
\ No newline at end of file
diff --git a/rust/cloud-storage/email_sfs_delete_handler/justfile b/rust/cloud-storage/email_sfs_delete_handler/justfile
index 56b9239380..86400b6097 100644
--- a/rust/cloud-storage/email_sfs_delete_handler/justfile
+++ b/rust/cloud-storage/email_sfs_delete_handler/justfile
@@ -1,5 +1,7 @@
lambda_name := file_name(justfile_directory())
+import '../database.just'
+
test:
cargo test --all-features
@@ -13,4 +15,4 @@ create-queues:
AWS_REGION=us-east-1 aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name my-test-scheduled-queue.fifo
prepare_db:
- DATABASE_URL=postgres://user:password@localhost:5432/macrodb cargo sqlx prepare
\ No newline at end of file
+ DATABASE_URL={{ DATABASE_URL }} cargo sqlx prepare
\ No newline at end of file
diff --git a/rust/cloud-storage/entity_access/justfile b/rust/cloud-storage/entity_access/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/entity_access/justfile
+++ b/rust/cloud-storage/entity_access/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/entity_access_db_utils/justfile b/rust/cloud-storage/entity_access_db_utils/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/entity_access_db_utils/justfile
+++ b/rust/cloud-storage/entity_access_db_utils/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/entity_access_management/justfile b/rust/cloud-storage/entity_access_management/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/entity_access_management/justfile
+++ b/rust/cloud-storage/entity_access_management/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/github/justfile b/rust/cloud-storage/github/justfile
index d7f13030d3..38c004ab6d 100644
--- a/rust/cloud-storage/github/justfile
+++ b/rust/cloud-storage/github/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/justfile b/rust/cloud-storage/justfile
index 90c15b420f..913e3cc111 100644
--- a/rust/cloud-storage/justfile
+++ b/rust/cloud-storage/justfile
@@ -1,5 +1,4 @@
-MACRODB := "postgres://user:password@localhost:5432/macrodb"
-DATABASE_URL := "postgres://user:password@localhost:5432"
+import './database.just'
mod sqlx './sqlx.just'
@@ -12,7 +11,7 @@ clippy:
# This can be used in any crate that uses macrodb under the hood
[no-cd]
prepare_db:
- just sqlx::prepare_db {{ MACRODB }}
+ just sqlx::prepare_db {{ DATABASE_URL }}
format:
SQLX_OFFLINE=true cargo fmt
@@ -53,46 +52,46 @@ build_lambdas:
# Copies over necessary .env files for sqlx tests
setup_test_envs:
- echo "DATABASE_URL={{ MACRODB }}" >> ./contacts_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./notification_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./notification/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./properties_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./macro_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./email_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./email_refresh_handler/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./comms_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./comms/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./document_cognition_service/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./document_text_extractor/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./organization_retention_handler/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./organization_retention_trigger/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./organization_retention_handler/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./sha_cleanup_worker/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./roles_and_permissions/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./teams/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./frecency/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./soup/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./email/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./system_properties/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./properties/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./name_search/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./email_scheduled_handler/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./saved_views/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./channels/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./comms_service/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./documents/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./stream/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./macro_project_utils/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./entity_access/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./github/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./referral/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./chat/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./memory/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./call/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./backfill_entity_access/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./entity_access_management/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./mobile_welcome_email_db_client/.env
- echo "DATABASE_URL={{ MACRODB }}" >> ./entity_access_db_utils/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./contacts_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./notification_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./notification/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./properties_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./macro_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./email_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./email_refresh_handler/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./comms_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./comms/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./document_cognition_service/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./document_text_extractor/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./organization_retention_handler/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./organization_retention_trigger/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./organization_retention_handler/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./sha_cleanup_worker/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./roles_and_permissions/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./teams/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./frecency/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./soup/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./email/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./system_properties/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./properties/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./name_search/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./email_scheduled_handler/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./saved_views/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./channels/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./comms_service/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./documents/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./stream/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./macro_project_utils/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./entity_access/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./github/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./referral/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./chat/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./memory/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./call/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./backfill_entity_access/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./entity_access_management/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./mobile_welcome_email_db_client/.env
+ echo "DATABASE_URL={{ DATABASE_URL }}" >> ./entity_access_db_utils/.env
setup_macrodb:
just macro_db_client/create_db
diff --git a/rust/cloud-storage/macro_db_client/justfile b/rust/cloud-storage/macro_db_client/justfile
index 3f5fe03ce1..4691fe601c 100644
--- a/rust/cloud-storage/macro_db_client/justfile
+++ b/rust/cloud-storage/macro_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/macro_project_utils/justfile b/rust/cloud-storage/macro_project_utils/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/macro_project_utils/justfile
+++ b/rust/cloud-storage/macro_project_utils/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/mobile_welcome_email_db_client/justfile b/rust/cloud-storage/mobile_welcome_email_db_client/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/mobile_welcome_email_db_client/justfile
+++ b/rust/cloud-storage/mobile_welcome_email_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/name_search/justfile b/rust/cloud-storage/name_search/justfile
index 380509e6a1..3bf0bc35ea 100644
--- a/rust/cloud-storage/name_search/justfile
+++ b/rust/cloud-storage/name_search/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/notification/justfile b/rust/cloud-storage/notification/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/notification/justfile
+++ b/rust/cloud-storage/notification/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/notification_db_client/justfile b/rust/cloud-storage/notification_db_client/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/notification_db_client/justfile
+++ b/rust/cloud-storage/notification_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/properties_db_client/justfile b/rust/cloud-storage/properties_db_client/justfile
index 6d461b006d..424cd9005c 100644
--- a/rust/cloud-storage/properties_db_client/justfile
+++ b/rust/cloud-storage/properties_db_client/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/referral/justfile b/rust/cloud-storage/referral/justfile
index d7f13030d3..38c004ab6d 100644
--- a/rust/cloud-storage/referral/justfile
+++ b/rust/cloud-storage/referral/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/roles_and_permissions/justfile b/rust/cloud-storage/roles_and_permissions/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/roles_and_permissions/justfile
+++ b/rust/cloud-storage/roles_and_permissions/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/soup/justfile b/rust/cloud-storage/soup/justfile
index d5a52bc432..fad4a0c048 100644
--- a/rust/cloud-storage/soup/justfile
+++ b/rust/cloud-storage/soup/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/system_properties/justfile b/rust/cloud-storage/system_properties/justfile
index 6d461b006d..424cd9005c 100644
--- a/rust/cloud-storage/system_properties/justfile
+++ b/rust/cloud-storage/system_properties/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'
diff --git a/rust/cloud-storage/teams/justfile b/rust/cloud-storage/teams/justfile
index 380509e6a1..3bf0bc35ea 100644
--- a/rust/cloud-storage/teams/justfile
+++ b/rust/cloud-storage/teams/justfile
@@ -1,4 +1,4 @@
-DATABASE_URL := "postgres://user:password@localhost:5432/macrodb"
+import '../database.just'
mod sqlx '../sqlx.just'