MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / IsCollectionNameUnique

Method IsCollectionNameUnique

core/app.go:459–459  ·  view source on GitHub ↗

IsCollectionNameUnique checks that there is no existing collection with the provided name (case insensitive!). Note: case insensitive check because the name is used also as table name for the records.

(name string, excludeIds ...string)

Source from the content-addressed store, hash-verified

457 // Note: case insensitive check because the name is used also as
458 // table name for the records.
459 IsCollectionNameUnique(name string, excludeIds ...string) bool
460
461 // TruncateCollection deletes all records associated with the provided collection.
462 //

Callers 2

checkUniqueNameMethod · 0.65

Calls

no outgoing calls

Tested by 1