code: public Dbi<T> openDbi(final byte[] name, final DbiFlags... flags) {
      try (Txn<T> txn = readOnly ? txnRead() : txnWrite()) {
        final Dbi<T> dbi = new Dbi<>(this, txn, name, null, flags);
        txn.commit(); // even RO Txns require a commit to retain Dbi in Env
        return dbi;
      }
    }
docs: Open the {@link Dbi}.
  
  @param name  name of the database (or null if no name is required)
  @param flags to open the database with
  @return a database that is ready to use