mongo

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployAll

func DeployAll(uri, db, dataDir string) error

DeployAll imports all discovered collections

func DeployCollection

func DeployCollection(uri, db, collectionKey, dataDir string) error

DeployCollection imports a single collection into MongoDB

func DiscoverCollections

func DiscoverCollections(dataDir string) (map[string]Collection, error)

DiscoverCollections scans the data directory and auto-discovers JSON files

Types

type Collection

type Collection struct {
	Name    string // Collection name (derived from filename)
	File    string // Full path to JSON file
	IsArray bool   // Auto-detected by inspecting file
}

Collection represents a discovered MongoDB collection

Jump to

Keyboard shortcuts

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