|
@@ 115-123 (lines=9) @@
|
| 112 |
|
public function expr() { |
| 113 |
|
if ($this->connection instanceof OracleConnection) { |
| 114 |
|
return new OCIExpressionBuilder($this->connection); |
| 115 |
|
} else if ($this->connection->getDatabasePlatform() instanceof PostgreSqlPlatform) { |
| 116 |
|
return new PgSqlExpressionBuilder($this->connection); |
| 117 |
|
} else if ($this->connection->getDatabasePlatform() instanceof MySqlPlatform) { |
| 118 |
|
return new MySqlExpressionBuilder($this->connection); |
| 119 |
|
} else if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) { |
| 120 |
|
return new SqliteExpressionBuilder($this->connection); |
| 121 |
|
} else { |
| 122 |
|
return new ExpressionBuilder($this->connection); |
| 123 |
|
} |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
/** |
|
@@ 143-151 (lines=9) @@
|
| 140 |
|
* @return \OCP\DB\QueryBuilder\IFunctionBuilder |
| 141 |
|
*/ |
| 142 |
|
public function func() { |
| 143 |
|
if ($this->connection instanceof OracleConnection) { |
| 144 |
|
return new OCIFunctionBuilder($this->helper); |
| 145 |
|
} else if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) { |
| 146 |
|
return new SqliteFunctionBuilder($this->helper); |
| 147 |
|
} else if ($this->connection->getDatabasePlatform() instanceof PostgreSqlPlatform) { |
| 148 |
|
return new PgSqlFunctionBuilder($this->helper); |
| 149 |
|
} else { |
| 150 |
|
return new FunctionBuilder($this->helper); |
| 151 |
|
} |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
/** |