src/SnooPHP/Model/Model.php
protected static function tableColumns()
	{
		// Database config
		global $dbConfig;

		$query = Db::instance(static::getDbName())->prepare("
			select column_name, column_key
			from information_schema.columns
			where table_schema = :schema and table_name = :table
		");
		$query->bindValue(":schema", $dbConfig[static::getDbName()]["schema"]);
		$query->bindValue(":table", static::tableName());

		if ($query->execute())
			return $query->fetchAll(PDO::FETCH_ASSOC);
		else
			return false;
	}
protected static function tableColumns()
	{
		// Database config
		global $dbConfig;

		$query = Db::instance(static::getDbName())->prepare("
			select column_name, column_key
			from information_schema.columns
			where table_schema = :schema and table_name = :table
		");
		$query->bindValue(":schema", $dbConfig[static::getDbName()]["schema"]);
		$query->bindValue(":table", static::tableName());

		if ($query->execute())
			return $query->fetchAll(PDO::FETCH_ASSOC);
		else
			return false;
	}
Return name of table columns

@return array|false if query fails