SQLStore

lightdb.sql.SQLStore
abstract class SQLStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](name: String, model: Model) extends Store[Doc, Model]

Attributes

Graph
Supertypes
class Store[Doc, Model]
trait Disposable
class Object
trait Matchable
class Any

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

Abstract methods

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

Concrete methods

protected def addColumn(field: Field[Doc, _])(implicit transaction: Transaction[Doc]): Unit
override def aggregate(query: AggregateQuery[Doc, Model])(implicit transaction: Transaction[Doc]): Stream[MaterializedAggregate[Doc, Model]]

Attributes

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

Attributes

Definition Classes
Store
protected def concatPrefix: String
override def count(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
Store
protected def createInsertSQL(): String
protected def createTable()(implicit transaction: Transaction[Doc]): Unit
protected def createUpsertSQL(): String
override def delete[V](field: UniqueIndex[Doc, V], value: V)(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Definition Classes
Store
protected def distanceFilter(f: Distance[Doc]): SQLPart
override protected def doDispose(): Task[Unit]

Attributes

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

Attributes

Definition Classes
Store
protected def executeUpdate(sql: String)(implicit transaction: Transaction[Doc]): Unit
override def exists(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Boolean]

Attributes

Definition Classes
Store
protected def extraFieldsForDistance(conversion: Distance[Doc, _]): List[SQLPart]
protected def field2Value(field: Field[Doc, _]): String
protected def fieldPart[V](field: Field[Doc, V]): SQLPart
override def get[V](field: UniqueIndex[Doc, V], value: V)(implicit transaction: Transaction[Doc]): Task[Option[Doc]]

Attributes

Definition Classes
Store
protected def initTransaction()(implicit transaction: Transaction[Doc]): Task[Unit]
override def insert(doc: Doc)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Definition Classes
Store
protected def insertPrefix: String
override def prepareTransaction(transaction: Transaction[Doc]): Task[Unit]

Attributes

Definition Classes
Store
protected def sortByDistance[G <: Geo](field: Field[_, List[G]], direction: SortDirection): SQLPart
override def stream(implicit transaction: Transaction[Doc]): Stream[Doc]

Attributes

Definition Classes
Store
protected def toJson(value: Any, rw: RW[_]): Json
override def truncate()(implicit transaction: Transaction[Doc]): Task[Int]

Attributes

Definition Classes
Store
override def upsert(doc: Doc)(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Definition Classes
Store
protected def upsertPrefix: String

Inherited methods

def apply(id: Id[Doc])(implicit transaction: Transaction[Doc]): Task[Doc]

Attributes

Inherited from:
Store
def isDisposes: Boolean

Attributes

Inherited from:
Disposable
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 reIndex(): Task[Boolean]

Attributes

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

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 hasSpatial: Task[Boolean]

Attributes

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

Attributes

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

Attributes

Inherited from:
Store