Gets the database engine of the given table

@param   string       $table  The table for which to retrieve the engine type
@return  string|bool
@since   2.0.0
558306
public function getEngine($table)
	{
		$this->setQuery('SHOW TABLE STATUS WHERE Name = ' . str_replace('#__', $this->tablePrefix, $this->quote($table, false)));

		return ($info = $this->loadObjectList()) ? $info[0]->Engine : false;
	}
175726
public function getTableSchema($table, $database = 'base')
    {
        $cacher = $this->config->getSchemaCacher();
        if ($cacher->has($table)) return $cacher->get($table);

        $driver = $this->getDatabase($database)->getDriver();
        $connection = $this->establishConnection($database, Database::TARGET_SLAVE);
        $describe = $driver->getTableDescribe($connection, $table);

        $schema = new TableSchema($table, $describe);
        $cacher->cache($table, $schema);
        return $schema;
    }
913313
protected function getCreateTable($table)
    {
        $db = $this->db;

        $result = $db->getReader('SHOW CREATE TABLE ' . $this->db->quoteName($table))->loadArray();

        $sql = preg_replace('#AUTO_INCREMENT=\S+#is', '', $result[1]);

        $sql = explode("\n", $sql);

        $tableStriped = TableHelper::stripPrefix($result[0], $db->getPrefix());

        $sql[0] = str_replace($result[0], $tableStriped, $sql[0]);

        $sql = implode("\n", $sql);

        return $sql;
    }
408806
public static function table($table)
    {
        //as all calls will start with this function, first check if database connection has being established
        if(Connect::getConn()==null){
            //lets just return the object of the class in-case of connection error (developer will handle the rest)
            return new static ;
        }
        self::$table = self::sanitize($table);

        return new static;
    }
691263
public function getTableKeys($table)
	{
		$this->connect();

		/** @var OracleQuery $query */
		$query = $this->getQuery(true);

		$fieldCasing = $this->getOption(\PDO::ATTR_CASE);

		$this->setOption(\PDO::ATTR_CASE, \PDO::CASE_UPPER);

		$table = strtoupper($table);
		$query->select('*');
		$query->from('ALL_CONSTRAINTS');
		$query->where('table_name = :tableName');

		$query->bind(':tableName', $table);

		$this->setQuery($query);
		$keys = $this->loadObjectList();

		$this->setOption(\PDO::ATTR_CASE, $fieldCasing);

		return $keys;
	}
1177623
public function getTableSchema($table)
    {
        if (!isset($this->_table_schema[$table])) {
            $this->_table_schema[$table] = $this->_fetchTableInfo($table);
            $this->_table_schema[$table]->indexes = $this->_fetchTableIndexes($table);
            $this->_table_schema[$table]->columns = $this->_fetchTableColumns($table);
        }

        return $this->_table_schema[$table];
    }
973409
public function table($table = null)
    {
        deprecationWarning(
            get_called_class() . '::table() is deprecated. ' .
            'Use setTable()/getTable() instead.'
        );
        if ($table !== null) {
            $this->setTable($table);
        }

        return $this->getTable();
    }
932744
protected function getTableKey($table) {
        if (empty(static::$tableKeys)) {
            $this->loadTableKeys();
        }

        return isset(static::$tableKeys[$table]) ? static::$tableKeys[$table] : static::$tableKeys['__default__'];
    }
470515
protected function getPhinxTableEngine($attributes, $table)
    {
        if (!empty($table['table']['engine'])) {
            $attributes[] = '\'engine\' => "' . addslashes($table['table']['engine']) . '"';
        } else {
            $attributes[] = '\'engine\' => "InnoDB"';
        }

        return $attributes;
    }
400233
private function getEntityNamespace($table) {

		if(false === is_string($table)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($table)), E_USER_ERROR);
		}

		$path  = $this -> getNamespace($this, ['directory', 'dbtable'], ['directory', 'entity']) . Application :: get(['prefix', 'entity']) . NameConvert :: toCamelCase($table, true);
		$path = str_replace(DIRECTORY_SEPARATOR, '\\', $path);

		return $path;
	}
110545
public function table($table)
    {
        $processor = $this->getPostProcessor();

        $query = new QueryBuilder($this, $this->getQueryGrammar(), $processor);

        return $query->from($table);
    }
346326
public function FetchColumnSql($Table) {
      if ($Table[0] != '`' && !StringBeginsWith($Table, $this->Database->DatabasePrefix))
         $Table = $this->Database->DatabasePrefix.$Table;
      
      return "show columns from ".$this->FormatTableName($Table);
   }
351824
public function get_table( $table ) {
		if (
			! isset( $this->table_defines[ $table ] ) ||
			! empty( $this->table_defines[ $table ]['wordpress'] ) ||
			! empty( $this->table_defines[ $table ]['global'] )
		) {
			return $table;
		}

		return $this->get_table_prefix() . $table;
	}
438007
public function table($table): object
    {
        if ($table instanceof Closure) {
            $sql   = $this->getSQLfromClosure($table);
            $table = '(' . $sql . ') as lin' . $this->tableCounter++;
        } else {
            $table = trim($table);
        }
        if (empty($this->container[$this->id]['s']['table'])) {
            $this->container[$this->id]['s']['table'] = " $table";
        } else {
            $this->container[$this->id]['s']['table'] .= ", $table";
        }

        return $this;
    }
828285
public static function get_table_columns( $table ) {

		global $wpdb;

		self::query( "SHOW COLUMNS FROM `{$table}` " );

		$table_columns = $wpdb->last_result;

		$table_cols_and_types = array();

		foreach ( $table_columns as $table_col ) {
			// Get only the type, not the attributes.
			if ( false === strpos( $table_col->Type, '(' ) ) {
				$modified_type = $table_col->Type;
			} else {
				$modified_type = substr( $table_col->Type, 0, ( strpos( $table_col->Type, '(' ) ) );
			}

			$table_cols_and_types[ $table_col->Field ] = $modified_type;
		}

		return $table_cols_and_types;
	}
577126
protected static function getCreateTableSql($table)
    {
        $db = Yii::$app->db;
        $row = $db->createCommand('SHOW CREATE TABLE ' . $db->schema->quoteTableName($table->fullName))->queryOne();
        if (isset($row['Create Table'])) {
            $sql = $row['Create Table'];
        } else {
            $row = array_values($row);
            $sql = $row[1];
        }

        return $sql;
    }
1201980
public function getCreateTable(string $table): string
	{
		return (string) $this->context->query('SHOW CREATE TABLE ' . $table)->fetch()->{'Create Table'};
	}