dalgo2ingitdb

package
v0.11.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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DatabaseID = "ingitdb"

Variables

This section is empty.

Functions

func CollectionForKey added in v0.9.0

func CollectionForKey(def *ingitdb.Definition, id string) (*ingitdb.CollectionDef, string, error)

CollectionForKey finds the collection and record key for a given ID string. id format: "collection/path/recordKey" where the collection part uses "/" as separator. Collection IDs in the definition use "." as separator, which is normalized to "/" for matching. The longest matching collection prefix wins.

func NewLocalDB

func NewLocalDB(rootDirPath string) (dal.DB, error)

func NewLocalDBWithDef added in v0.9.0

func NewLocalDBWithDef(rootDirPath string, def *ingitdb.Definition) (dal.DB, error)

NewLocalDBWithDef creates a localDB with a preloaded schema definition. The definition enables CRUD operations that require collection metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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