From 054d7ff8d8f49afa4d6c7da99b9714a22a4fd1c0 Mon Sep 17 00:00:00 2001 From: grkuntzmd Date: Mon, 10 Aug 2015 09:57:57 -0400 Subject: [PATCH] Add :db/txInstant constant to Attribute --- core/src/main/scala/datomisca/Attribute.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/scala/datomisca/Attribute.scala b/core/src/main/scala/datomisca/Attribute.scala index ab0f1c20..15eb6a4d 100644 --- a/core/src/main/scala/datomisca/Attribute.scala +++ b/core/src/main/scala/datomisca/Attribute.scala @@ -88,13 +88,13 @@ final case class Attribute[DD, Card <: Cardinality]( if(fulltext.isDefined) mb += Attribute.fulltext -> (fulltext.get: java.lang.Boolean) if(isComponent.isDefined) mb += Attribute.isComponent -> (isComponent.get: java.lang.Boolean) if(noHistory.isDefined) mb += Attribute.noHistory -> (noHistory.get: java.lang.Boolean) - + // installing attribute mb += Attribute.installAttr -> Partition.DB.keyword new AddEntity(id, mb.result()) } - + override def toTxData: AnyRef = toAddOps.toTxData /** the keyword ident of the attribute as a string */ @@ -130,7 +130,7 @@ final case class Attribute[DD, Card <: Cardinality]( builder.result() } -} +} object Attribute { /** :db/id */ @@ -155,4 +155,6 @@ object Attribute { val noHistory = Namespace.DB / "noHistory" /** :db.install/_attribute */ val installAttr = Namespace.DB.INSTALL / "_attribute" + /** :db/txInstant */ + val txInstant = Namespace.DB / "txInstant" }