final class ConfigDb extends AnyRef

In-memory representation of a configuration DB content.

Use ConfigDb.apply or ConfigDb.open to create an instance of it.

set, setFromString, and remove only change values in memory.

Use save to persist values on disk.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConfigDb
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def dump: Array[Byte]

    Dumps this DB content as JSON

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get[T](key: Key[T]): Either[ConfigDbFormatError, Option[T]]

    Gets an entry.

    Gets an entry.

    If the value cannot be decoded, an error is returned on the left side of the either.

    If the key isn't in DB, None is returned on the right side of the either.

    Else, the value is returned wrapped in Some on the right side of the either.

  11. def getAsString[T](key: Key[T]): Either[ConfigDbFormatError, Option[Seq[String]]]

    Gets an entry in printable form.

    Gets an entry in printable form.

    See get for when a left value, or a None on the right, can be returned.

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. var rawEntries: Map[String, Array[Byte]]
  19. def remove(key: Key[_]): ConfigDb.this.type

    Removes an entry from memory

  20. def save(path: Path): Either[Exception, Unit]

    Saves this DB at the passed path

  21. def saveUnsafe(path: Path): Either[ConfigDbPermissionsError, Unit]
  22. def set[T](key: Key[T], value: T): ConfigDb.this.type

    Sets an entry in memory

  23. def setFromString[T](key: Key[T], values: Seq[String]): Either[MalformedValue, ConfigDb.this.type]

    Sets an entry in memory, from a printable / user-writable representation.

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped