Versions in this module Expand all Collapse all v0 v0.7.4 Jan 8, 2014 v0.7.3 Jan 3, 2014 Changes in this version + func PathDepth(p string) int + type Database struct + func NewDatabase(conn *sql.DB, init bool) (*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) 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 + EntityID string + Name string + ParentID string + type Edges []*Edge + type Entities map[string]*Entity + func (e Entities) Paths() []string + type Entity struct + func (e *Entity) ID() string + type WalkFunc func(fullPath string, entity *Entity) error + type WalkMeta struct + Edge *Edge + Entity *Entity + FullPath string + Parent *Entity