1 | <?php |
||
21 | class MSSQLAzureDatabase extends MSSQLDatabase |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * List of parameters used to create new Azure connections between databases |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $parameters = []; |
||
30 | |||
31 | public function fullTextEnabled() |
||
35 | |||
36 | /** |
||
37 | * Connect to a SQL Azure database with the given parameters. |
||
38 | * @param array $parameters Connection parameters set by environment |
||
39 | * - server: The server, eg, localhost |
||
40 | * - username: The username to log on with |
||
41 | * - password: The password to log on with |
||
42 | * - database: The database to connect to |
||
43 | * - windowsauthentication: Not supported for Azure |
||
44 | */ |
||
45 | public function connect($parameters) |
||
50 | |||
51 | /** |
||
52 | * Connect to a database using the provided parameters |
||
53 | * |
||
54 | * @param string $database |
||
55 | */ |
||
56 | protected function connectDatabase($database) |
||
76 | |||
77 | /** |
||
78 | * Switches to the given database. |
||
79 | * |
||
80 | * IMPORTANT: SQL Azure doesn't support "USE", so we need |
||
81 | * to reinitialize the database connection with the requested |
||
82 | * database name. |
||
83 | * @see http://msdn.microsoft.com/en-us/library/windowsazure/ee336288.aspx |
||
84 | * |
||
85 | * @param string $name The database name to switch to |
||
86 | * @param bool $create |
||
87 | * @param bool|int $errorLevel |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function selectDatabase($name, $create = false, $errorLevel = E_USER_ERROR) |
||
111 | } |
||
112 |