This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Classe de conexão ao banco de dados usando PDO no padrão Singleton. | |
* Modo de Usar: | |
* require_once './Database.class.php'; | |
* $db = Database::conexao(); | |
* E agora use as funções do PDO (prepare, query, exec) em cima da variável $db. | |
*/ | |
class Database | |
{ |