hasbolt-extras-0.0.2.0: Extras for hasbolt library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.Bolt.Extras.Utils

Synopsis

Documentation

dummyId :: Int Source #

dummyId is used to load Node and URelationship into database, because id from database is not known for such moment.

union :: Node -> Node -> Node Source #

Nodes can be merged. union is useful when you have to store in one node several labels and props from different classes.

currentLoc :: Q Exp Source #

currentLoc shows module name and line where this expression is used.

exactValues :: (MonadIO m, RecordValue a) => Text -> [Record] -> m [a] Source #

Extract values

exactValuesM :: (MonadIO m, RecordValue a) => Text -> [Record] -> BoltActionT m [Maybe a] Source #

Extract values (maybe)

exact :: (MonadIO m, RecordValue a) => Value -> m a Source #

Deprecated: This function exists for compatibility, consider using pure exactEither or exactMaybe instead.

Unpack a value, using fail in IO to report errors.