many

molecule.base.api.DataModelApi.many
See themany companion trait
object many extends many

Attributes

Companion
trait
Source
DataModelApi.scala
Graph
Supertypes
trait many
trait refOptions[many, Set[Long]]
trait Options[many, Set[Long], Long]
class Object
trait Matchable
class Any
Show all
Self type
many.type

Members list

Value members

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[RefNs](description: String): refOptions[Self, Tpe]

Attributes

Inherited from:
refOptions
Source
DataModelApi.scala
def apply[RefNs](implicit x: DummyImplicit): refOptions[Self, Tpe]

Apply namespace type to reference.

Apply namespace type to reference.

Type parameters

RefNs

Ref namespace type

Attributes

Inherited from:
refOptions
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[Long], failureMsg: String): Self

Attributes

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

Attributes

Inherited from:
Options
Source
DataModelApi.scala
def require[T <: Options[_, _, _]](attrs: T*): Self

Attributes

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

Attributes

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

Attributes

Inherited from:
Options
Source
DataModelApi.scala

Inherited fields

lazy val index: many

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: many

Attributes

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

No history option.

No history option.

Attributes

Inherited from:
Options
Source
DataModelApi.scala
lazy val owner: many

Owner option.

Owner option.

This entity owns the referenced entity/entities.

  • If this entity is deleted, its references are deleted too (and recursively if sub entities have owned entities!)



Specifies that an attribute whose type is :db.type/ref is a component.

Referenced entities become subcomponents of the entity to which the attribute is applied.

When you retract an entity with :db/retractEntity, all subcomponents are also retracted.

When you get the graph of an entity, all its subcomponent entities are fetched recursively.

Attributes

Inherited from:
refOptions
Source
DataModelApi.scala
lazy val unique: many

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: many

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: Set[Long]

Attributes

Inherited from:
Options
Source
DataModelApi.scala