Parent: #28
Task
Add get_connection_string() method to src/serendb/client.rs.
File to Modify
src/serendb/client.rs
What to Add
get_connection_string(project_id, branch_id, database, pooled) - Gets full PostgreSQL connection string with credentials
replace_database_in_connection_string() - Helper to replace database name in URL
See docs/plans/api-key-flow-implementation.md Task 1.5 for full code.
Tests to Write
test_replace_database_in_connection_string
How to Test
cargo test serendb::client::tests -- --nocapture
Commit Message
feat(serendb): Add connection string retrieval method
Parent: #28
Task
Add
get_connection_string()method tosrc/serendb/client.rs.File to Modify
src/serendb/client.rsWhat to Add
get_connection_string(project_id, branch_id, database, pooled)- Gets full PostgreSQL connection string with credentialsreplace_database_in_connection_string()- Helper to replace database name in URLSee
docs/plans/api-key-flow-implementation.mdTask 1.5 for full code.Tests to Write
test_replace_database_in_connection_stringHow to Test
cargo test serendb::client::tests -- --nocaptureCommit Message
feat(serendb): Add connection string retrieval method