silverstripe-mssql/_config/connectors.yml

33 lines
1.0 KiB
YAML
Raw Normal View History

---
name: mssqlconnectors
---
2018-01-19 04:27:18 +01:00
SilverStripe\Core\Injector\Injector:
# Connect using PDO
MSSQLPDODatabase:
class: 'SilverStripe\MSSQL\MSSQLDatabase'
properties:
connector: '%$PDOConnector'
schemaManager: '%$MSSQLSchemaManager'
queryBuilder: '%$MSSQLQueryBuilder'
# Uses sqlsrv_connect
MSSQLDatabase:
class: 'SilverStripe\MSSQL\MSSQLDatabase'
properties:
connector: '%$SQLServerConnector'
schemaManager: '%$MSSQLSchemaManager'
queryBuilder: '%$MSSQLQueryBuilder'
# Uses sqlsrv_connect to connect to a MS Azure Database
MSSQLAzureDatabase:
class: 'SilverStripe\MSSQL\MSSQLAzureDatabase'
properties:
connector: '%$SQLServerConnector'
schemaManager: '%$MSSQLSchemaManager'
queryBuilder: '%$MSSQLQueryBuilder'
SQLServerConnector:
class: 'SilverStripe\MSSQL\SQLServerConnector'
type: prototype
MSSQLSchemaManager:
class: 'SilverStripe\MSSQL\MSSQLSchemaManager'
MSSQLQueryBuilder:
class: 'SilverStripe\MSSQL\MSSQLQueryBuilder'