SQLStore

lightdb.sql.SQLStore
abstract class SQLStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](name: String, path: Option[Path], model: Model, lightDB: LightDB, storeManager: StoreManager) extends Collection[Doc, Model]

Attributes

Graph
Supertypes
class Collection[Doc, Model]
class Store[Doc, Model]
trait Disposable
trait Initializable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

object transaction

Attributes

Inherited from:
Store
Supertypes
class Object
trait Matchable
class Any
object trigger extends StoreTriggers[Doc, Model]

Attributes

Inherited from:
Store
Supertypes
class StoreTriggers[Doc, Model]
trait StoreTrigger[Doc, Model]
class Object
trait Matchable
class Any

Types

override type TX <: SQLStoreTransaction[Doc, Model]

Value members

Abstract methods

protected def tables(connection: Connection): Set[String]

Concrete methods

protected def addColumn(field: Field[Doc, _], tx: TX): Unit
protected def createInsertSQL(): String
protected def createTable(tx: TX): Unit
protected def createUpsertSQL(): String
override protected def doDispose(): Task[Unit]

Attributes

Definition Classes
Store -> Disposable
protected def executeUpdate(sql: String, tx: TX): Unit
protected def field2Value(field: Field[Doc, _]): String
protected def initTransaction(tx: TX): Task[Unit]
override protected def initialize(): Task[Unit]

Define initialization functionality here, but never call directly.

Define initialization functionality here, but never call directly.

Attributes

Definition Classes
Store -> Initializable
protected def insertPrefix: String
protected def upsertPrefix: String

Inherited methods

def isDisposes: Boolean

Attributes

Inherited from:
Disposable
def isInitialized: Boolean

Attributes

Inherited from:
Initializable
def optimize(): Task[Unit]

Optimizes this store. This allows the implementation an opportunity to clean up, optimize, etc. to improve the performance of the store.

Optimizes this store. This allows the implementation an opportunity to clean up, optimize, etc. to improve the performance of the store.

Attributes

Inherited from:
Store
def reIndex(doc: Doc): Task[Boolean]

Attributes

Inherited from:
Store
def reIndex(): Task[Boolean]

Attributes

Inherited from:
Store
def verify(): Task[Boolean]

Attributes

Inherited from:
Store

Inherited and Abstract methods

def storeMode: StoreMode[Doc, Model]

Attributes

Inherited from:
Store

Inherited fields

lazy val dispose: Task[Unit]

Calls doDispose() exactly one time. Safe to call multiple times.

Calls doDispose() exactly one time. Safe to call multiple times.

Attributes

Inherited from:
Disposable
lazy val fields: List[Field[Doc, _]]

Attributes

Inherited from:
Store
lazy val hasSpatial: Task[Boolean]

Attributes

Inherited from:
Store
lazy val idField: UniqueIndex[Doc, Id[Doc]]

Attributes

Inherited from:
Store
lazy val init: Task[Unit]

Calls initialize() exactly one time. Safe to call multiple times.

Calls initialize() exactly one time. Safe to call multiple times.

Attributes

Inherited from:
Initializable
lazy val lock: LockManager[Id[Doc], Doc]

Attributes

Inherited from:
Store
lazy val t: Transactionless[Doc, Model]

Attributes

Inherited from:
Store