MCPcopy Create free account
hub / github.com/dolthub/doltgresql / CreateLibraryIdentifier

Function CreateLibraryIdentifier

core/extensions/extensions.go:172–174  ·  view source on GitHub ↗

CreateLibraryIdentifier creates a LibraryIdentifier using the given information.

(name string, version pg_extension.Version)

Source from the content-addressed store, hash-verified

170
171// CreateLibraryIdentifier creates a LibraryIdentifier using the given information.
172func CreateLibraryIdentifier(name string, version pg_extension.Version) LibraryIdentifier {
173 return LibraryIdentifier(fmt.Sprintf("00%s%010d%s", pg_extension.PLATFORM, version, name))
174}
175
176// Platform returns the platform that this LibraryIdentifier was created on.
177func (id LibraryIdentifier) Platform() string {

Callers 3

RowIterMethod · 0.92
RowIterMethod · 0.92
RowIterMethod · 0.92

Calls 1

LibraryIdentifierTypeAlias · 0.85

Tested by

no test coverage detected