Files
mariavel/backend/app/Contracts/DatabaseDriverInterface.php
T

22 lines
417 B
PHP

<?php
namespace App\Contracts;
interface DatabaseDriverInterface
{
/**
* Set the connection parameters and establish a connection.
*/
public function connect(array $config): bool;
/**
* Execute a raw query.
*/
public function query(string $sql, array $bindings = []): array;
/**
* Get the underlying connection instance.
*/
public function getConnection();
}