mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
25 lines
684 B
YAML
25 lines
684 B
YAML
|
---
|
||
|
name: mssqlconnectors
|
||
|
---
|
||
|
Injector:
|
||
|
# Connect using PDO
|
||
|
MSSQLPDODatabase:
|
||
|
class: 'MSSQLDatabase'
|
||
|
properties:
|
||
|
connector: %$PDOConnector
|
||
|
schemaManager: %$MSSQLSchemaManager
|
||
|
queryBuilder: %$MSSQLQueryBuilder
|
||
|
# Uses sqlsrv_connect
|
||
|
MSSQLDatabase:
|
||
|
class: 'MSSQLDatabase'
|
||
|
properties:
|
||
|
connector: %$SQLServerConnector
|
||
|
schemaManager: %$MSSQLSchemaManager
|
||
|
queryBuilder: %$MSSQLQueryBuilder
|
||
|
# Uses sqlsrv_connect to connect to a MS Azure Database
|
||
|
MSSQLAzureDatabase:
|
||
|
class: 'MSSQLAzureDatabase'
|
||
|
properties:
|
||
|
connector: %$SQLServerConnector
|
||
|
schemaManager: %$MSSQLSchemaManager
|
||
|
queryBuilder: %$MSSQLQueryBuilder
|