-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0ae740
commit f308d38
Showing
16 changed files
with
132 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Connections; | ||
|
||
use Staudenmeir\LaravelCte\Query\FirebirdBuilder; | ||
use HarryGulliford\Firebird\FirebirdConnection as Base; | ||
|
||
class FirebirdConnection extends Base | ||
{ | ||
/** | ||
* Get a new query builder instance. | ||
* | ||
* @return \Illuminate\Database\Query\Builder | ||
*/ | ||
public function query() | ||
{ | ||
return new FirebirdBuilder($this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Query; | ||
|
||
use HarryGulliford\Firebird\Query\Builder as Base; | ||
use Staudenmeir\LaravelCte\Query\Traits\BuildsExpressionQueries; | ||
|
||
class FirebirdBuilder extends Base | ||
{ | ||
use BuildsExpressionQueries; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Query\Grammars; | ||
|
||
use HarryGulliford\Firebird\Query\Grammars\FirebirdGrammar as Base; | ||
use Staudenmeir\LaravelCte\Query\Grammars\Traits\CompilesFirebirdExpressions; | ||
|
||
class FirebirdGrammar extends Base | ||
{ | ||
use CompilesFirebirdExpressions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Query\Grammars\Traits; | ||
|
||
use Illuminate\Database\Query\Builder; | ||
|
||
trait CompilesFirebirdExpressions | ||
{ | ||
use CompilesExpressions; | ||
|
||
/** | ||
* Compile an insert statement using a subquery into SQL. | ||
* | ||
* @param \Illuminate\Database\Query\Builder $query | ||
* @param array $columns | ||
* @param string $sql | ||
* @return string | ||
*/ | ||
public function compileInsertUsing(Builder $query, array $columns, string $sql) | ||
{ | ||
$insert = "insert into {$this->wrapTable($query->from)} ({$this->columnize($columns)}) "; | ||
|
||
return "$insert{$this->compileExpressions($query, $query->expressions)} $sql"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters