-
-
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.
Added support of the SingleStoreDB (#48)
* Added SingleStore support * Fixed sqlite test * Updated singlestoredb laravel dependency * Fixed test config * Created database * removed unused dependency * Formatting and refactoring * Fix refactoring * Moved singlestore dependency to dev and deleted singlestore provider * Refactoring * Refactor tests --------- Co-authored-by: Jonas Staudenmeir <mail@jonas-staudenmeir.de>
- Loading branch information
1 parent
8582245
commit a68eff1
Showing
14 changed files
with
167 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Connections; | ||
|
||
use SingleStore\Laravel\Connect\Connection; | ||
use Staudenmeir\LaravelCte\Query\SingleStoreBuilder; | ||
|
||
class SingleStoreConnection extends Connection | ||
{ | ||
/** | ||
* Get a new query builder instance. | ||
* | ||
* @return \Illuminate\Database\Query\Builder | ||
*/ | ||
public function query() | ||
{ | ||
return new SingleStoreBuilder($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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Staudenmeir\LaravelCte\Query\Grammars; | ||
|
||
use SingleStore\Laravel\Query\Grammar; | ||
use Staudenmeir\LaravelCte\Query\Grammars\Traits\CompilesMySqlExpressions; | ||
|
||
class SingleStoreGrammar extends Grammar | ||
{ | ||
use CompilesMySqlExpressions; | ||
} |
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 SingleStore\Laravel\Query\Builder; | ||
use Staudenmeir\LaravelCte\Query\Traits\BuildsExpressionQueries; | ||
|
||
class SingleStoreBuilder extends Builder | ||
{ | ||
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
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
Oops, something went wrong.