package composition
- Alphabetic
- By Inheritance
- composition
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Tx extends AnyRef
Transaction meta data on molecule.
Transaction meta data on molecule.
Tx
takes a transaction meta data molecule with attributes having the transaction id as their entity id.// Save molecule with transaction data Person.name("Ben").Tx(MyMetaData.action("add member")).save.eid // Query for data with transaction meta data - "which persons became members" Person.name.Tx(MyMetaData.action_("add member")).get === List("Ben")
- trait Tx_[props] extends AnyRef
Value Members
- object CompositeInit_0
Build composite molecule.
Build composite molecule.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
The attributes of the first sub-molecule are tied together in a tuple of its own before being merged with the tuple of attribute values of the second sub-molecule. If any of the sub-molecules are of arity-1, then no tuple is created:// Arity 1 + 1 m(Article.name + Tag.category).get === List( ("Battle of Waterloo", "History") ) // Arity 1 + 2 m(Article.name + Tag.category.weight).get === List( ("Battle of Waterloo", ("History", 5)) ) // Arity 2 + 1 m(Article.name.author + Tag.category).get === List( (("Battle of Waterloo", "Ben Bridge"), "History") ) // Arity 2 + 2 m(Article.name.author + Tag.category.weight).get === List( (("Battle of Waterloo", "Ben Bridge"), ("History", 5)) ) // Arity 3 + 2 etc... m(Article.name.author.editor + Tag.category.weight).get === List( (("Battle of Waterloo", "Ben Bridge", "Joe Moe"), ("History", 5)) )
- object CompositeInit_1
Build composite molecule from input molecule awaiting 1 input.
Build composite molecule from input molecule awaiting 1 input.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
The attributes of the first input sub-molecule awaiting 1 input are tied together in a tuple of its own before being merged with the tuple of attribute values of the second sub-molecule. If any of the sub-molecules are of arity-1, then no tuple is created:m(Article.name(?).author.editor + Tag.category.weight) .apply("Battle of Waterloo").get === List( (("Battle of Waterloo", "Ben Bridge", "Joe Moe"), ("History", 5)) )
- object CompositeInit_2
Build composite molecule from input molecule awaiting 2 inputs.
Build composite molecule from input molecule awaiting 2 inputs.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
The attributes of the first input sub-molecule awaiting 2 inputs are tied together in a tuple of its own before being merged with the tuple of attribute values of the second sub-molecule. If any of the sub-molecules are of arity-1, then no tuple is created:m(Article.name(?).author(?).editor + Tag.category.weight) .apply("Battle of Waterloo", "Ben Bridge").get === List( (("Battle of Waterloo", "Ben Bridge", "Joe Moe"), ("History", 5)) )
- object CompositeInit_3
Build composite molecule from input molecule awaiting 3 inputs.
Build composite molecule from input molecule awaiting 3 inputs.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
The attributes of the first input sub-molecule awaiting 3 inputs are tied together in a tuple of its own before being merged with the tuple of attribute values of the second sub-molecule. If any of the sub-molecules are of arity-1, then no tuple is created:m(Article.name(?).author(?).editor(?) + Tag.category.weight) .apply("Battle of Waterloo", "Ben Bridge", "Joe Moe").get === List( (("Battle of Waterloo", "Ben Bridge", "Joe Moe"), ("History", 5)) )
- object Composite_0
Add sub-molecule to composite molecule.
Add sub-molecule to composite molecule.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and these "sub-molecules" are tied together with+
methods to form a composite molecule.
+
methods of this interface adds a new sub-molecule to the composite.// | add sub-molecule m(Article.name.author + Tag.category.weight + Publisher.name).get === List( (("Battle of Waterloo", "Ben Bridge"), ("History", 5), "Bestseller Publications Inc.") )
- object Composite_1
Add sub-molecule to composite input molecule awaiting 1 input.
Add sub-molecule to composite input molecule awaiting 1 input.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
+
methods of this interface adds a new sub-molecule to the composite.// | input composite | add sub-molecule m(Article.name(?).author + Tag.category.weight + Publisher.name) .apply("Battle of Waterloo").get === List( (("Battle of Waterloo", "Ben Bridge"), ("History", 5), "Bestseller Publications Inc.") )
- object Composite_2
Add sub-molecule to composite input molecule awaiting 2 inputs.
Add sub-molecule to composite input molecule awaiting 2 inputs.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
+
methods of this interface adds a new sub-molecule to the composite.// | input composite | add sub-molecule m(Article.name(?).author(?) + Tag.category.weight + Publisher.name) .apply("Battle of Waterloo", "Ben Bridge").get === List( (("Battle of Waterloo", "Ben Bridge"), ("History", 5), "Bestseller Publications Inc.") )
- object Composite_3
Add sub-molecule to composite input molecule awaiting 3 inputs.
Add sub-molecule to composite input molecule awaiting 3 inputs.
Composite molecules model entities with attributes from different namespaces that are not necessarily related. Each group of attributes is modelled by a molecule and the "sub-molecules" are tied together with+
methods to form a composite molecule.
+
methods of this interface adds a new sub-molecule to the composite.// | input composite | add sub-molecule m(Article.name(?).author(?) + Tag.category.weight(?) + Publisher.name) .apply("Battle of Waterloo", "Ben Bridge", 5).get === List( (("Battle of Waterloo", "Ben Bridge"), ("History", 5), "Bestseller Publications Inc.") )
- object Tx_0
- object Tx_1
- object Tx_2
- object Tx_3
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
scalamolecule.org | Github | Forum