1 | <?php |
||
19 | class SQLServerDriver extends Driver |
||
20 | { |
||
21 | /** |
||
22 | * Driver type. |
||
23 | */ |
||
24 | const TYPE = DatabaseInterface::SQL_SERVER; |
||
25 | |||
26 | /** |
||
27 | * Driver schemas. |
||
28 | */ |
||
29 | const TABLE_SCHEMA_CLASS = SQLServerTable::class; |
||
30 | |||
31 | /** |
||
32 | * Query compiler class. |
||
33 | */ |
||
34 | const QUERY_COMPILER = SQLServerCompiler::class; |
||
35 | |||
36 | /** |
||
37 | * DateTime format to be used to perform automatic conversion of DateTime objects. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | const DATETIME = 'Y-m-d\TH:i:s.000'; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | protected $options = [ |
||
47 | PDO::ATTR_CASE => PDO::CASE_NATURAL, |
||
48 | PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, |
||
49 | PDO::ATTR_STRINGIFY_FETCHES => false, |
||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * @throws DriverException |
||
56 | */ |
||
57 | public function __construct( |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function identifier(string $identifier): string |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function hasTable(string $name): bool |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function truncateData(string $table) |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function tableNames(): array |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function getHandler(LoggerInterface $logger = null): AbstractHandler |
||
118 | } |