stringOptions

molecule.base.api.DataModelApi.stringOptions
trait stringOptions[Self, Tpe] extends Options[Self, Tpe, String]

Attributes

Source
DataModelApi.scala
Graph
Supertypes
trait Options[Self, Tpe, String]
trait Requierable
class Object
trait Matchable
class Any
Known subtypes
trait oneString
object oneString.type
trait setString
object setString.type

Members list

Value members

Concrete methods

def email(msg: String): Self

Attributes

Source
DataModelApi.scala
def regex(expr: String, msg: String): Self

Attributes

Source
DataModelApi.scala

Inherited methods

def alias(altAttrName: String): Self

Alias to non-compatible attribute name like type or first-name etc.

Alias to non-compatible attribute name like type or first-name etc.

Molecule then creates an alias to the special name in the schema so that queries will match both the attribute name and the alias.

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def apply(description: String): Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def descr(description: String): Self

Description of attribute

Description of attribute

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def enums(vs: Seq[String], failureMsg: String): Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def enums(vs: String*): Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def require(attrs: Requierable*): Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def validate(err2msg: PartialFunction[String, String]): Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def validate(ok: String => Boolean, errorMsg: String): Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala

Concrete fields

val email: Self

Attributes

Source
DataModelApi.scala
val fulltext: Self

Attributes

Source
DataModelApi.scala

Inherited fields

lazy val index: Self

Index option (defaults to true).

Generated index for this attribute. By default all attributes are set with the indexed option automatically by Molecule, so you don't need to set this.

Index option (defaults to true).

Generated index for this attribute. By default all attributes are set with the indexed option automatically by Molecule, so you don't need to set this.

Attributes

Inherited from:
Options
Source
DataModelApi.scala
lazy val mandatory: Self

Attributes

Inherited from:
Options
Source
DataModelApi.scala
lazy val noHistory: Self

No history option.

No history option.

Attributes

Inherited from:
Options
Source
DataModelApi.scala
lazy val unique: Self

Unique value option.

Attribute value is unique to each entity.

Attempts to insert a duplicate value for a different entity id will fail.

Unique value option.

Attribute value is unique to each entity.

Attempts to insert a duplicate value for a different entity id will fail.

Attributes

Inherited from:
Options
Source
DataModelApi.scala
lazy val uniqueIdentity: Self

Unique identity option.

Attribute value is unique to each entity and "upsert" is enabled.

Attempts to insert a duplicate value for a temporary entity id will cause all attributes associated with that temporary id to be merged with the entity already in the database.

Unique identity option.

Attribute value is unique to each entity and "upsert" is enabled.

Attempts to insert a duplicate value for a temporary entity id will cause all attributes associated with that temporary id to be merged with the entity already in the database.

Attributes

Inherited from:
Options
Source
DataModelApi.scala
val value: Tpe

Attributes

Inherited from:
Options
Source
DataModelApi.scala