collref

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDBName = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

type Name struct {
	// contains filtered or unexported fields
}

Name is a collection reference: the pair of database name and collection name that locates a collection, rendered as "db.coll".

func New

func New(dbName, collName string) Name

func Parse

func Parse(s string) (Name, error)

Parse parses a "db.coll" or "coll" (under the default db) string.

func (Name) CollName

func (n Name) CollName() string

func (Name) DBName

func (n Name) DBName() string

func (Name) String

func (n Name) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL