Skip to content

Commit

Permalink
add docstring for CollectionResoureceIDWithDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
coryschwartz committed Nov 22, 2023
1 parent e5c545d commit ff1f875
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docstore/gcpfirestore/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ func CollectionResourceID(projectID, collPath string) string {
return fmt.Sprintf("projects/%s/databases/(default)/documents/%s", projectID, collPath)
}

// CollectResoureceIDWithDatabase constructs a resource ID for a collection from the project ID, database ID, and the collection path.
// See the OpenCollection example for use.
func CollectionResourceIDWithDatabase(projectID, databaseID, collPath string) string {
return fmt.Sprintf("projects/%s/databases/%s/documents/%s", projectID, databaseID, collPath)

Check warning on line 155 in docstore/gcpfirestore/fs.go

View check run for this annotation

Codecov / codecov/patch

docstore/gcpfirestore/fs.go#L154-L155

Added lines #L154 - L155 were not covered by tests
}
Expand Down

0 comments on commit ff1f875

Please sign in to comment.