-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDriver.php
More file actions
28 lines (25 loc) · 808 Bytes
/
IDriver.php
File metadata and controls
28 lines (25 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
* Opulence
*
* @link https://www.opulencephp.com
* @copyright Copyright (C) 2021 David Young
* @license https://github.com/opulencephp/Opulence/blob/1.2/LICENSE.md
*/
namespace Opulence\Databases;
/**
* Defines the interface to be implemented by database drivers
* A driver is simply any class that can make a database connection
*/
interface IDriver
{
/**
* Creates a connection to the input server
*
* @param Server $server The server to connect to
* @param array $connectionOptions The list of connection options
* @param array $driverOptions The list of driver options
* @return IConnection The database connection
*/
public function connect(Server $server, array $connectionOptions = [], array $driverOptions = []) : IConnection;
}