Skip to content

Commit

Permalink
update interface doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Mar 6, 2024
1 parent f60e4ac commit 27f020a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions client/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ type Store interface {

// GetCollections returns all collections and their descriptions matching the given options
// that currently exist within this [Store].
//
// Inactive collections are not returned by default unless a specific schema version ID
// is provided.
GetCollections(context.Context, CollectionFetchOptions) ([]Collection, error)

// GetSchemaByVersionID returns the schema description for the schema version of the
Expand Down
5 changes: 4 additions & 1 deletion db/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,11 @@ func (db *db) getCollectionByName(ctx context.Context, txn datastore.Txn, name s
return cols[0], nil
}

// GetCollections returns all collections and their descriptions matching the given options
// getCollections returns all collections and their descriptions matching the given options
// that currently exist within this [Store].
//
// Inactive collections are not returned by default unless a specific schema version ID
// is provided.
func (db *db) getCollections(
ctx context.Context,
txn datastore.Txn,
Expand Down

0 comments on commit 27f020a

Please sign in to comment.