File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import UnidocRecords
5
5
6
6
extension UnidocDatabase
7
7
{
8
+ /// Load the metadata for a package by name. The returned package might have a different
9
+ /// canonical name than the one provided.
8
10
public
9
11
func package ( named symbol: Symbol . Package ,
10
12
with session: Mongo . Session ) async throws -> Unidoc . PackageMetadata ?
@@ -13,6 +15,8 @@ extension UnidocDatabase
13
15
query: Unidoc . AliasResolutionQuery< PackageAliases, Packages> . init( symbol: symbol) ,
14
16
with: session)
15
17
}
18
+ /// Load the metadata for a realm by name. The returned realm might have a different
19
+ /// canonical name than the one provided.
16
20
public
17
21
func realm( named symbol: String ,
18
22
with session: Mongo . Session ) async throws -> Unidoc . RealmMetadata ?
You can’t perform that action at this time.
0 commit comments