trait ArangoDatabase[F[_]] extends AnyRef
Scala wrapper for ar.ArangoDatabaseAsync
- F
The effect type
- Alphabetic
- By Inheritance
- ArangoDatabase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
accessibleDatabases: F[Iterable[String]]
Returns a list of all accessible datbases
-
abstract
def
arango: ArangoDB[F]
Returns the arangodb server ref on which this db runs
-
abstract
def
collection(name: String, createOptions: Option[CollectionCreateOptions] = None): F[ArangoCollection[F]]
Returns a collection (and creates it, if not exists)
-
abstract
def
collections: F[Iterable[CollectionEntity]]
Returns all collections
-
abstract
def
create: F[Unit]
Creates the database on server
- abstract def cursor[T](cursorId: String)(implicit codec: DocumentCodec[T]): F[Option[ArangoCursor[T]]]
-
abstract
def
deleteIndex(id: String): F[Unit]
Deletes an index
-
abstract
def
drop: F[Unit]
Drops the database
-
abstract
def
exists: F[Boolean]
Returns true if the database exists
- abstract def explainQuery(query: String, bindVars: Map[String, Any] = Map.empty, options: AqlQueryExplainOptions = new AqlQueryExplainOptions): F[AqlExecutionExplainEntity]
-
abstract
def
grantAccess(user: String, permissions: Permissions = Permissions.RW): F[Unit]
Grants access to the database dbname for user user.
Grants access to the database dbname for user user. You need permission to the _system database in order to execute this call.
-
abstract
def
grantDefaultCollectionAccess(user: String, permissions: Permissions): F[Unit]
Sets the default access level for collections within this database for the user user.
Sets the default access level for collections within this database for the user user. You need permission to the _system database in order to execute this call.
-
abstract
def
index(id: String): F[Option[IndexEntity]]
Returns an index for the given id
-
abstract
def
info: F[DatabaseEntity]
Returns db info
Returns db info
- See also
com.arangodb.ArangoDatabase#getInfo()
-
abstract
def
name: String
Returns db name
Returns db name
- See also
com.arangodb.ArangoDatabase#name()
- abstract def permissions(user: String): F[Option[Permissions]]
- abstract def query[T](query: String, bindVars: Map[String, Any] = Map.empty, options: AqlQueryOptions = new AqlQueryOptions)(implicit codec: DocumentCodec[T]): F[ArangoCursor[T]]
-
abstract
def
resetAccess(user: String): F[Unit]
Clear the database access level, revert back to the default access level.
-
abstract
def
unwrap: ArangoDatabaseAsync
Access to underlying java driver
-
abstract
def
version: F[ArangoDBVersion]
Returns arango version details
Concrete 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
revokeAccess(user: String): F[Unit]
Revokes access to the database dbname for user user.
Revokes access to the database dbname for user user. You need permission to the _system database in order to execute this call.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )