final class Driver[F[_]] extends AnyRef
A neotypes driver for accessing the neo4j graph database A driver wrapped in the resource type can be created using the neotypes GraphDatabase
val driver = GraphDatabase[F]("bolt://localhost:7687").driver
- F
effect type for driver
- Alphabetic
- By Inheritance
- Driver
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(implicit F: Async[F]): F[Unit]
Close the resources assigned to the neo4j driver
Close the resources assigned to the neo4j driver
- F
the effect type
- returns
an effect F of Unit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def readSession[T](sessionWork: (Session[F]) => F[T])(implicit F: Async[F]): F[T]
Apply a unit of work to a read session
Apply a unit of work to a read session
- T
the type of the value that will be returned when the query is executed.
- sessionWork
function that takes a Session[F] and returns an F[T]
- F
the effect type
- returns
an effect F of type T
- def session[R[_]](config: SessionConfig)(implicit F: Aux[F, R]): R[Session[F]]
Acquire a session to the database.
Acquire a session to the database.
- R
resource type dependant on effect type F.
- F
asynchronous effect type with resource type defined.
- returns
Session[F] in effect type R.
- Note
When your effect type is scala.Future there is no concept of Resource. For more information see alternative effects
- def session[R[_]](implicit F: Aux[F, R]): R[Session[F]]
Acquire a session to the database with the default config.
Acquire a session to the database with the default config.
- R
resource type dependant on effect type F.
- F
asynchronous effect type with resource type defined.
- returns
Session[F] in effect type R.
- Note
When your effect type is scala.Future there is no concept of Resource. For more information see alternative effects
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeSession[T](sessionWork: (Session[F]) => F[T])(implicit F: Async[F]): F[T]
Apply a unit to a write session
Apply a unit to a write session
- T
the type of the value that will be returned when the query is executed.
- sessionWork
function that takes a Session[F] and returns an F[T]
- F
the effect type
- returns
an effect F of type T