docstr: Gets a database by name
docstr_tok: ["Gets","a","database","by","name"]
code: def get(self, database_name):
      """Gets a database by name"""
      session = SessionController()
      try:
          project = session.database_controller.get_project(
              database_name
          )
          return {
              "name": database_name,
              "type": "project",
              "id": project.id,
              "engine": None,
          }
      except NoResultFound:
          integration = session.integration_controller.get(
              database_name
          )
          if integration is None:
              abort(
                  HTTPStatus.NOT_FOUND,
                  f"Database with name {database_name} does not exist.",
              )
          return integration
  
imports: from http import HTTPStatus
  from sqlalchemy.exc import NoResultFound
  from typing import Dict
  from flask import request
  from flask_restx import Resource, abort
  from mindsdb.api.http.namespaces.configs.databases import ns_conf
  from mindsdb.api.mysql.mysql_proxy.classes.fake_mysql_proxy import FakeMysqlProxy
  from mindsdb.api.executor.controllers.session_controller import SessionController
  from mindsdb.api.executor.datahub.classes.tables_row import TablesRow
  from mindsdb.api.executor.data_types.response_type import RESPONSE_TYPE
  from mindsdb_sql import parse_sql, ParsingException
  from mindsdb_sql.parser.ast import CreateTable, DropTables
label_desc: Use image node_id 1 for calling the DatabaseResource obj's underlying member method code with example usage: obj.get(database_name) and returns: dict, integration