java.lang.Object
com.couchbase.columnar.client.java.Database

@ThreadSafe public final class Database extends Object
Contains Scopes.
  • Method Details

    • name

      public String name()
    • cluster

      public Cluster cluster()
      Returns the cluster this database belongs to.

      Note: Your IDE might warn you that the returned object is auto-closable. If so, please ignore or suppress this warning. The code that calls this method is not responsible for closing the returned cluster instance.

    • scope

      public Scope scope(String name)
      Returns the scope in this database with the given name.

      If the scope does not exist, this method still returns a non-null object, but operations using that object fail with an exception indicating the scope does not exist.

    • toString

      public String toString()
      Overrides:
      toString in class Object