LightDB

lightdb.LightDB
abstract class LightDB

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

protected object stored

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
stored.type

Value members

Abstract methods

protected def createStore(name: String): Store
def directory: Path

Concrete methods

protected def collection[D <: Document[LazyRef(...)]](name: String, model: DocumentModel[D], defaultCommitMode: CommitMode, atomic: Boolean)(implicit rw: RW[D]): AbstractCollection[D]
def commit(): IO[Unit]
protected def disableExtraneousLogging: Boolean

Disables extraneous logging from underlying implementations. Defaults to true.

Disables extraneous logging from underlying implementations. Defaults to true.

Attributes

def dispose(): IO[Unit]
def disposed: Boolean
def init(truncate: Boolean): IO[Unit]
def initialized: Boolean
def truncate(): IO[Unit]
def update(): IO[Unit]
protected def updateFrequency: FiniteDuration

How frequently to run background updates. Defaults to every 30 seconds.

How frequently to run background updates. Defaults to every 30 seconds.

Attributes

protected def verifyIndexIntegrityOnStartup: Boolean

If true, will automatically check the number of indexes vs the number of store entries and if there's a mismatch, the index will be truncated and rebuilt at startup. Defaults to true.

If true, will automatically check the number of indexes vs the number of store entries and if there's a mismatch, the index will be truncated and rebuilt at startup. Defaults to true.

Attributes

Concrete fields

lazy protected val appliedUpgrades: StoredValue[Set[String]]
final lazy val collections: List[AbstractCollection[_]]
lazy protected val databaseInitialized: StoredValue[Boolean]