Versions in this module Expand all Collapse all v0 v0.2.1 Feb 9, 2024 Changes in this version + const DB_KV_FILE + const META_KV_FILE + const OS_DB_DIR + const SCHEMA_KEY + var ErrOpenDatabase = errors.New("database is already open by the current process or another one") + var JSON_SERIALIZATION_CONFIG = core.JSONSerializationConfig + var LOCAL_DB_PROPNAMES = []string + type LocalDatabase struct + func OpenDatabase(ctx *core.Context, r core.ResourceName, restrictedAccess bool) (*LocalDatabase, error) + func (ldb *LocalDatabase) BaseURL() core.URL + func (ldb *LocalDatabase) Close(ctx *core.Context) error + func (ldb *LocalDatabase) Get(ctx *core.Context, key core.Path) (core.Value, core.Bool) + func (ldb *LocalDatabase) GetSerialized(ctx *core.Context, key core.Path) (string, bool) + func (ldb *LocalDatabase) Has(ctx *core.Context, key core.Path) bool + func (ldb *LocalDatabase) Insert(ctx *core.Context, key core.Path, value core.Serializable) + func (ldb *LocalDatabase) InsertSerialized(ctx *core.Context, key core.Path, serialized string) + func (ldb *LocalDatabase) LoadTopLevelEntities(ctx *core.Context) (map[string]core.Serializable, error) + func (ldb *LocalDatabase) Remove(ctx *core.Context, key core.Path) + func (ldb *LocalDatabase) Resource() core.SchemeHolder + func (ldb *LocalDatabase) Schema() *core.ObjectPattern + func (ldb *LocalDatabase) Set(ctx *core.Context, key core.Path, value core.Serializable) + func (ldb *LocalDatabase) SetSerialized(ctx *core.Context, key core.Path, serialized string) + func (ldb *LocalDatabase) UpdateSchema(ctx *core.Context, schema *core.ObjectPattern, ...) + type LocalDatabaseConfig struct + Host core.Host + InMemory bool + OsFsDir core.Path + Restricted bool