# La classe Swoole\MySQL

(PECL swoole >= 1.9.0)

## Introduction

## Synopsis de la classe

class Swoole\MySQL {
/* Méthodes */
public function close(): void
public function connect(array `$server_config`, callable `$callback`): void
public function __destruct(): void
public function getBuffer(): ReturnType
public function on(string `$event_name`, callable `$callback`): void
public function query(string `$sql`, callable `$callback`): ReturnType
}

## Sommaire

- Swoole\MySQL::close — Ferme la connexion MySQL asynchrone.
- Swoole\MySQL::connect — Connecte au serveur MySQL distant.
- Swoole\MySQL::__construct — Construit un client MySQL asynchrone.
- Swoole\MySQL::__destruct — Détruit le client MySQL asynchrone.
- Swoole\MySQL::getBuffer — Description
- Swoole\MySQL::on — Enregistre une fonction de rappel basée sur le nom de l'événement.
- Swoole\MySQL::query — Exécute la requête SQL.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open