1 | <?php |
||
13 | class Factory |
||
14 | { |
||
15 | /** |
||
16 | * @param $connectionString |
||
17 | * @param $schemesAlternative |
||
18 | * @return \ByJG\AnyDataset\DbDriverInterface |
||
19 | */ |
||
20 | 28 | public static function getDbRelationalInstance($connectionString, $schemesAlternative = null) |
|
43 | |||
44 | /** |
||
45 | * @param $connectionString |
||
46 | * @param $schemesAlternative |
||
47 | * @return NoSqlInterface |
||
48 | */ |
||
49 | public static function getNoSqlInstance($connectionString, $schemesAlternative = null) |
||
66 | |||
67 | /** |
||
68 | * @param string $connectionString |
||
69 | * @param array $schemesAlternative |
||
70 | * @return KeyValueInterface |
||
71 | */ |
||
72 | public static function getKeyValueInstance($connectionString, $schemesAlternative = null) |
||
89 | |||
90 | 28 | protected static function getInstance($connectionString, $validSchemes, $typeOf) |
|
108 | |||
109 | /** |
||
110 | * Get a IDbFunctions class to execute Database specific operations. |
||
111 | * |
||
112 | * @param \ByJG\Util\Uri $connectionUri |
||
113 | * @return \ByJG\AnyDataset\DbFunctionsInterface |
||
114 | */ |
||
115 | 5 | public static function getDbFunctions(Uri $connectionUri) |
|
122 | } |
||
123 |