Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + func IsNonUniqueNameError(err error) bool — linux/amd64 + func PathDepth(p string) int — linux/amd64 + type Database struct — linux/amd64 + func NewDatabase(conn *sql.DB) (*Database, error) + func NewSqliteConn(root string) (*Database, error) + func (db *Database) Children(name string, depth int) ([]WalkMeta, error) + func (db *Database) Close() error + func (db *Database) Delete(name string) error + func (db *Database) Exists(name string) bool + func (db *Database) Get(name string) *Entity + func (db *Database) List(name string, depth int) Entities + func (db *Database) Parents(name string) ([]string, error) + func (db *Database) Purge(id string) (int, error) + func (db *Database) RefPaths(id string) Edges + func (db *Database) Refs(id string) int + func (db *Database) Rename(currentName, newName string) error + func (db *Database) RootEntity() *Entity + func (db *Database) Set(fullPath, id string) (*Entity, error) + func (db *Database) Walk(name string, walkFunc WalkFunc, depth int) error + type Edge struct — linux/amd64 + EntityID string + Name string + ParentID string + type Edges []*Edge — linux/amd64 + type Entities map[string]*Entity — linux/amd64 + func (e Entities) Paths() []string + type Entity struct — linux/amd64 + func (e *Entity) ID() string + type WalkFunc func(fullPath string, entity *Entity) error — linux/amd64 + type WalkMeta struct — linux/amd64 + Edge *Edge + Entity *Entity + FullPath string + Parent *Entity