SQLiteStore

lightdb.sql.SQLiteStore
See theSQLiteStore companion object
class SQLiteStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](name: String, model: Model, val connectionManager: ConnectionManager, val storeMode: StoreMode[Doc, Model], storeManager: StoreManager) extends SQLStore[Doc, Model]

Attributes

Companion
object
Graph
Supertypes
class SQLStore[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 CollectionTriggers[Doc]

Attributes

Inherited from:
Store
Supertypes
class CollectionTriggers[Doc]
trait CollectionTrigger[Doc]
class Object
trait Matchable
class Any

Value members

Inherited methods

protected def addColumn(field: Field[Doc, _])(implicit transaction: Transaction[Doc]): Unit

Attributes

Inherited from:
SQLStore
override def aggregate(query: AggregateQuery[Doc, Model])(implicit transaction: Transaction[Doc]): Stream[MaterializedAggregate[Doc, Model]]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
override def aggregateCount(query: AggregateQuery[Doc, Model])(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
def apply(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
protected def concatPrefix: String

Attributes

Inherited from:
SQLStore
override def count(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
protected def createInsertSQL(): String

Attributes

Inherited from:
SQLStore
protected def createTable()(implicit transaction: Transaction[Doc]): Unit

Attributes

Inherited from:
SQLStore
protected def createUpsertSQL(): String

Attributes

Inherited from:
SQLStore
override def delete[V](field: UniqueIndex[Doc, V], value: V)(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
override protected def doDispose(): Task[Unit]

Attributes

Definition Classes
SQLStore -> Disposable
Inherited from:
SQLStore
override def doSearch[V](query: Query[Doc, Model, V])(implicit transaction: Transaction[Doc]): Task[SearchResults[Doc, Model, V]]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
protected def executeUpdate(sql: String)(implicit transaction: Transaction[Doc]): Unit

Attributes

Inherited from:
SQLStore
override def exists(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
protected def field2Value(field: Field[Doc, _]): String

Attributes

Inherited from:
SQLStore
protected def fieldPart[V](field: Field[Doc, V]): SQLPart

Attributes

Inherited from:
SQLStore
override def get[V](field: UniqueIndex[Doc, V], value: V)(implicit transaction: Transaction[Doc]): Task[Option[Doc]]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
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
SQLStore -> Initializable
Inherited from:
SQLStore
override def insert(doc: Doc)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
def insert(docs: Seq[Doc])(implicit transaction: Transaction[Doc]): Task[Seq[Doc]]

Attributes

Inherited from:
Store
protected def insertPrefix: String

Attributes

Inherited from:
SQLStore
def isDisposes: Boolean

Attributes

Inherited from:
Disposable
def isInitialized: Boolean

Attributes

Inherited from:
Initializable
def jsonStream(implicit transaction: Transaction[Doc]): Stream[Json]

Attributes

Inherited from:
Store
def modify(id: Id[Doc], establishLock: Boolean, deleteOnNone: Boolean)(f: Forge[Option[Doc], Option[Doc]])(implicit transaction: Transaction[Doc]): Task[Option[Doc]]

Attributes

Inherited from:
Store
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
override def prepareTransaction(transaction: Transaction[Doc]): Task[Unit]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
def reIndex(doc: Doc): Task[Boolean]

Attributes

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

Attributes

Inherited from:
Store
def releaseTransaction(transaction: Transaction[Doc]): Task[Unit]

Attributes

Inherited from:
Store
override def stream(implicit transaction: Transaction[Doc]): Stream[Doc]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
override def supportsArbitraryQuery: Boolean

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
protected def toJson(value: Any, rw: RW[_]): Json

Attributes

Inherited from:
SQLStore
override def truncate()(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
override def upsert(doc: Doc)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Definition Classes
SQLStore -> Store
Inherited from:
SQLStore
def upsert(docs: Seq[Doc])(implicit transaction: Transaction[Doc]): Task[Seq[Doc]]

Attributes

Inherited from:
Store
protected def upsertPrefix: String

Attributes

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

Attributes

Inherited from:
Store

Concrete fields

val connectionManager: ConnectionManager
val storeMode: StoreMode[Doc, Model]

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