Rpc_postgres

molecule.sql.postgres.marshalling.Rpc_postgres
object Rpc_postgres extends MoleculeRpc, SqlBase_JVM, SpiHelpers, SqlUpdateSetValidator, FutureUtils

Attributes

Source
Rpc_postgres.scala
Graph
Supertypes
trait FutureUtils
trait MoleculeLogging
trait Logging
trait SqlUpdateSetValidator
trait SpiHelpers
trait SqlBase_JVM
trait BaseHelpers
trait DateHandling
trait RegexMatching
trait ModelUtils
trait SqlDataType_JVM
trait DataType
trait MoleculeRpc
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

implicit class Regex(sc: StringContext)

Attributes

Inherited from:
RegexMatching
Source
RegexMatching.scala
Supertypes
class Object
trait Matchable
class Any
implicit class futEither2fut[T](fut: Future[Either[MoleculeError, T]])(implicit ec: ExecutionContext)

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
Supertypes
class Object
trait Matchable
class Any

Inherited types

type Data = (List[Table], List[JoinTable])

Attributes

Inherited from:
SqlDataType_JVM
Source
SqlDataType_JVM.scala
type IdsMap = Map[List[String], List[Long]]

Attributes

Inherited from:
SqlDataType_JVM
Source
SqlDataType_JVM.scala
type RowIndex = Int

Attributes

Inherited from:
SqlDataType_JVM
Source
SqlDataType_JVM.scala
type Setter = (PreparedStatement, IdsMap, RowIndex) => Unit

Attributes

Inherited from:
SqlDataType_JVM
Source
SqlDataType_JVM.scala

Value members

Concrete methods

override def delete(proxy: ConnProxy, elements: List[Element]): Future[Either[MoleculeError, TxReport]]

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala
override def insert(proxy: ConnProxy, elements: List[Element], tplsSerialized: Array[Byte]): Future[Either[MoleculeError, TxReport]]

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala
override def query[Any](proxy: ConnProxy, elements: List[Element], limit: Option[Int]): Future[Either[MoleculeError, List[Any]]]

Tuple type is not marshalled from client to server. So we signal this with the 'Any' type parameter. Model elements are used to pickle the correct types here on the server side. And once wired to the client side we can unpickle the data again from the model and cast to type Tpl.

Tuple type is not marshalled from client to server. So we signal this with the 'Any' type parameter. Model elements are used to pickle the correct types here on the server side. And once wired to the client side we can unpickle the data again from the model and cast to type Tpl.

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala
override def queryCursor[Any](proxy: ConnProxy, elements: List[Element], limit: Option[Int], cursor: String): Future[Either[MoleculeError, (List[Any], String, Boolean)]]

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala
override def queryOffset[Any](proxy: ConnProxy, elements: List[Element], limit: Option[Int], offset: Int): Future[Either[MoleculeError, (List[Any], Int, Boolean)]]

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala
override def save(proxy: ConnProxy, elements: List[Element]): Future[Either[MoleculeError, TxReport]]

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala
override def update(proxy: ConnProxy, elements: List[Element], isUpsert: Boolean): Future[Either[MoleculeError, TxReport]]

Attributes

Definition Classes
MoleculeRpc
Source
Rpc_postgres.scala

Inherited methods

protected def addColSetter(refPath: List[String], colSetter: Setter): Unit

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
def await[T](body: => Future[T], atMost: Duration): T

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
protected def bigDec(arg: Any): BigDecimal

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def countValueAttrs(elements: List[Element]): Int

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
def date2datomic(date: Date): String

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def date2str(date: Date, zoneOffset: ZoneOffset): String

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def daylight(ms: Long): Int

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
protected def debug(s: Any): Unit

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
def diff(s1: String, s2: String): Unit

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def double(arg: Any): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def either[T](fut: Future[T])(implicit ec: ExecutionContext): Future[Either[MoleculeError, T]]

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
def escStr(s: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def expandDateStr(dateStr: String): String

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def firstLow(str: Any): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def future[T](body: => T)(implicit ec: ExecutionContext): Future[T]

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala
final def getAttrNames(elements: List[Element], attrs: Set[String]): Set[String]

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def getConn(proxy: ConnProxy): Future[JdbcConn_JVM]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
def getIdQuery(elements: List[Element], isUpsert: Boolean): (Query[_ >: (L, L, L, L, L) & (L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L) & (L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L) & (L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) & L & (L, L) & (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) <: (L, L, L, L, L) | (L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L) | (L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L) | (L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L) | L | (L, L) | (L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L)], List[Long => List[Element]])

Attributes

Inherited from:
SpiHelpers
Source
SpiHelpers.scala
final protected def getInitialNonGenericNs(elements: List[Element]): String

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
final protected def getInitialNs(elements: List[Element]): String

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
def getKwName(kw: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def getRefIds(refIdsAnyCardinality: List[Any]): List[Long]

Attributes

Inherited from:
SpiHelpers
Source
SpiHelpers.scala
protected def getRefResolver[T](ns: String, refAttr: String, refNs: String, card: Card): T => Unit

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
override def indent(level: Int): String

Attributes

Definition Classes
SqlBase_JVM -> BaseHelpers
Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
def isRefUpdate(elements: List[Element]): Boolean

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
protected def jsonArray2coalescedSet(a: Attr, rs: ResultSetInterface): Set[Any]

Attributes

Inherited from:
SpiHelpers
Source
SpiHelpers.scala
def localOffset: String

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def localZoneOffset: ZoneOffset

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
protected def logger: Logger

The logger for this class.

The logger for this class.

Attributes

Inherited from:
Logging
Source
Logging.scala
protected def loggerName: String

Override this to change the name of the underlying logger.

Override this to change the name of the underlying logger.

Defaults to class name with package

Attributes

Inherited from:
Logging
Source
Logging.scala
protected def nestedArray2coalescedSet(a: Attr, rs: ResultSetInterface, isAttr: Boolean): Set[Any]

Attributes

Inherited from:
SpiHelpers
Source
SpiHelpers.scala
protected def noKeywords(elements: List[Element], optProxy: Option[ConnProxy]): List[Element]

Attributes

Inherited from:
ModelUtils
Source
ModelUtils.scala
final def o(opt: Option[Any]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final def oStr(opt: Option[String]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final def oStr2(opt: Option[String]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def okEnumIdent(enumIdent: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def okIdent(name: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def okNamespaceName(name: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def okPartitionName(name: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final def opt(opt: Option[Any]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final def optFilterAttr(opt: Option[(Int, List[String], Any)]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def pad(longest: Int, shorter: Int): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def padS(longest: Int, str: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def prepareMultipleUpdates(elements: List[Element], isUpsert: Boolean): (List[Element], List[Long => List[Element]])

Attributes

Inherited from:
SpiHelpers
Source
SpiHelpers.scala
final def render(value: Any): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final def renderValidations(validations: Seq[(String, String)]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final protected def resetTimer(): Unit

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final def sq[T](values: Iterable[T]): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def ss(a: String, b: String, c: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def ss(a: String, b: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def str2date(s: String, zoneOffset: ZoneOffset): Date

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def str2zdt(s: String, zoneOffset: ZoneOffset): ZonedDateTime

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def thousands(i: Long): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
final protected def time(n: Int, prev: Int): Unit

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def truncateDateStr(dateStr: String): String

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala
def unescStr(s: String): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
protected def validateUpdateSet(proxy: ConnProxy, elements: List[Element], isUpsert: Boolean, query2resultSet: String => ResultSetInterface): Map[String, Seq[String]]

Attributes

Inherited from:
SqlUpdateSetValidator
Source
SqlUpdateSetValidator.scala
protected def validateUpdateSet2(proxy: ConnProxy, elements: List[Element], isUpsert: Boolean, query2resultSet: String => ResultSetInterface): Map[String, Seq[String]]

Attributes

Inherited from:
SqlUpdateSetValidator
Source
SqlUpdateSetValidator.scala
def withDecimal(v: Any): String

Attributes

Inherited from:
BaseHelpers
Source
BaseHelpers.scala
def zone: ZoneId

Attributes

Inherited from:
DateHandling
Source
DateHandling.scala

Concrete fields

val container: PostgreSQLContainer

Attributes

Source
Rpc_postgres.scala

Inherited fields

protected val colSettersMap: Map[List[String], List[Setter]]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var curRefPath: List[String]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var doPrint: Boolean

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var filterElements: List[Element]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var ids: Seq[Long]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var initialNs: String

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var inserts: List[(List[String], List[(String, String)])]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var joinTableDatas: List[JoinTable]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var joins: List[(List[String], String, String, List[String], List[String])]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
var level: Int

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
val logFormatter: Formatter

Attributes

Inherited from:
MoleculeLogging
Source
MoleculeLogging.scala
val logLevel: Level

Attributes

Inherited from:
MoleculeLogging
Source
MoleculeLogging.scala
protected var manualTableDatas: List[Table]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected val paramIndexes: Map[(List[String], String), Int]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var placeHolders: List[String]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected val rightCountsMap: Map[List[String], List[Int]]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected val rowSettersMap: Map[List[String], List[Setter]]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
lazy val sqlConn: Connection

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected val tableDatas: Map[List[String], Table]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var uniqueFilterElements: List[Element]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected val updateCols: Map[List[String], List[String]]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala
protected var updates: List[(List[String], List[String])]

Attributes

Inherited from:
SqlBase_JVM
Source
SqlBase_JVM.scala

Implicits

Inherited implicits

final implicit def Regex(sc: StringContext): Regex

Attributes

Inherited from:
RegexMatching
Source
RegexMatching.scala
final implicit def futEither2fut[T](fut: Future[Either[MoleculeError, T]])(implicit ec: ExecutionContext): futEither2fut[T]

Attributes

Inherited from:
FutureUtils
Source
FutureUtils.scala