dalgo2ingitdb

package
v0.11.4 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.

The id format is "{collectionID}/{recordKey}" where the collection part may use either "." or "/" as a namespace separator. Collection IDs in the definition use "." as separator (e.g. "todo.tags"), so both "todo.tags/abc" and "todo/tags/abc" are accepted. 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