public boolean isDatabaseExisted(final String database) {
    final DatabasePartitionTable databasePartitionTable = databasePartitionTables.get(database);
    return databasePartitionTable != null && databasePartitionTable.isNotPreDeleted();
  }
Check if the specified Database exists.

@param database The specified Database
@return True if the DatabaseSchema is exists and the Database is not pre-deleted
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java