Skip to content

Commit

Permalink
Moved \ to SQLBuilder\
Browse files Browse the repository at this point in the history
  • Loading branch information
masterWeber committed Jan 6, 2021
1 parent cdce23f commit b92ee54
Show file tree
Hide file tree
Showing 63 changed files with 169 additions and 149 deletions.
33 changes: 17 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "masterweber/sqlbuilder",
"description": "Simple SQL query constructor.",
"type": "library",
"license": "MIT",
"keywords": [
"sql",
"sql-build"
],
"autoload": {
"classmap": [
"src/"
]
},
"require-dev": {
"phpunit/phpunit": "^9"
},
"name": "masterweber/sqlbuilder",
"description": "Simple SQL query constructor.",
"type": "library",
"license": "MIT",
"keywords": [
"sql",
"sql-build"
],
"autoload": {
"psr-4": {
"SQLBuilder\\": "src/"
}
},
"require-dev": {
"phpunit/phpunit": "^9"
},
"require": {
"php": ">=7.4",
"ext-json": "*",
"ext-mbstring": "*"
}
Expand Down
6 changes: 3 additions & 3 deletions src/Block/FromBlock.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Block;
namespace SQLBuilder\Block;


use Clause\From;
use Stringable_;
use SQLBuilder\Clause\From;
use SQLBuilder\Stringable_;

trait FromBlock
{
Expand Down
6 changes: 3 additions & 3 deletions src/Block/LimitBlock.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Block;
namespace SQLBuilder\Block;


use Clause\Limit;
use Stringable_;
use SQLBuilder\Clause\Limit;
use SQLBuilder\Stringable_;

trait LimitBlock
{
Expand Down
6 changes: 3 additions & 3 deletions src/Block/OrderByBlock.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Block;
namespace SQLBuilder\Block;


use Clause\OrderBy;
use Stringable_;
use SQLBuilder\Clause\OrderBy;
use SQLBuilder\Stringable_;

trait OrderByBlock
{
Expand Down
6 changes: 3 additions & 3 deletions src/Block/WhereBlock.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Block;
namespace SQLBuilder\Block;


use Clause\Where;
use Stringable_;
use SQLBuilder\Clause\Where;
use SQLBuilder\Stringable_;

trait WhereBlock
{
Expand Down
8 changes: 4 additions & 4 deletions src/Clause/Assignment.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;

use Helper;
use Stringable_;
use Value;
use SQLBuilder\Helper;
use SQLBuilder\Stringable_;
use SQLBuilder\Value;

class Assignment implements Stringable_
{
Expand Down
7 changes: 3 additions & 4 deletions src/Clause/AssignmentList.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php

namespace Clause;
namespace SQLBuilder\Clause;

use Exception;
use Stringable_;
use Value;
use SQLBuilder\Stringable_;
use SQLBuilder\Value;

class AssignmentList implements Stringable_
{
Expand Down
46 changes: 23 additions & 23 deletions src/Clause/Condition.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;

use Block\LimitBlock;
use Block\OrderByBlock;
use SQLBuilder\Block\LimitBlock;
use SQLBuilder\Block\OrderByBlock;
use Closure;
use Expression\Between;
use Expression\Binary;
use Expression\Expression;
use Expression\In;
use Expression\Is;
use Expression\IsNot;
use Expression\Like;
use Expression\NotBetween;
use Expression\NotIn;
use Expression\NotLike;
use Expression\NotRegExp;
use Expression\Raw;
use Expression\RegExp;
use Helper;
use Operator\LogicalAnd;
use Operator\LogicalNot;
use Operator\LogicalOr;
use Operator\LogicalXor;
use Operator\Operator;
use Stringable_;
use SQLBuilder\Expression\Between;
use SQLBuilder\Expression\Binary;
use SQLBuilder\Expression\Expression;
use SQLBuilder\Expression\In;
use SQLBuilder\Expression\Is;
use SQLBuilder\Expression\IsNot;
use SQLBuilder\Expression\Like;
use SQLBuilder\Expression\NotBetween;
use SQLBuilder\Expression\NotIn;
use SQLBuilder\Expression\NotLike;
use SQLBuilder\Expression\NotRegExp;
use SQLBuilder\Expression\Raw;
use SQLBuilder\Expression\RegExp;
use SQLBuilder\Helper;
use SQLBuilder\Operator\LogicalAnd;
use SQLBuilder\Operator\LogicalNot;
use SQLBuilder\Operator\LogicalOr;
use SQLBuilder\Operator\LogicalXor;
use SQLBuilder\Operator\Operator;
use SQLBuilder\Stringable_;

class Condition implements Stringable_
{
Expand Down
8 changes: 4 additions & 4 deletions src/Clause/From.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Block\WhereBlock;
use Helper;
use Stringable_;
use SQLBuilder\Block\WhereBlock;
use SQLBuilder\Helper;
use SQLBuilder\Stringable_;

class From implements Stringable_
{
Expand Down
2 changes: 1 addition & 1 deletion src/Clause/GroupCondition.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


class GroupCondition extends Condition
Expand Down
6 changes: 3 additions & 3 deletions src/Clause/Join.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Helper;
use Stringable_;
use SQLBuilder\Helper;
use SQLBuilder\Stringable_;

class Join implements Stringable_
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clause/Limit.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Stringable_;
use SQLBuilder\Stringable_;

class Limit implements Stringable_
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clause/Offset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Stringable_;
use SQLBuilder\Stringable_;

class Offset
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clause/On.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Block\WhereBlock;
use SQLBuilder\Block\WhereBlock;

class On extends Condition
{
Expand Down
8 changes: 4 additions & 4 deletions src/Clause/OrderBy.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Block\LimitBlock;
use Helper;
use Stringable_;
use SQLBuilder\Block\LimitBlock;
use SQLBuilder\Helper;
use SQLBuilder\Stringable_;

class OrderBy implements Stringable_
{
Expand Down
6 changes: 3 additions & 3 deletions src/Clause/Set.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Block\WhereBlock;
use Stringable_;
use SQLBuilder\Block\WhereBlock;
use SQLBuilder\Stringable_;

class Set implements Stringable_
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clause/ValueList.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


use Value;
use SQLBuilder\Value;

class ValueList
{
Expand Down
2 changes: 1 addition & 1 deletion src/Clause/Where.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php


namespace Clause;
namespace SQLBuilder\Clause;


class Where extends Condition
Expand Down
4 changes: 2 additions & 2 deletions src/DataType/Default_.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php


namespace DataType;
namespace SQLBuilder\DataType;

use Stringable_;
use SQLBuilder\Stringable_;

class Default_ implements Stringable_
{
Expand Down
4 changes: 2 additions & 2 deletions src/DataType/Unknown.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php


namespace DataType;
namespace SQLBuilder\DataType;

use Stringable_;
use SQLBuilder\Stringable_;

class Unknown implements Stringable_
{
Expand Down
4 changes: 2 additions & 2 deletions src/Expression/Between.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Expression;
namespace SQLBuilder\Expression;


use Helper;
use SQLBuilder\Helper;

class Between extends Expression
{
Expand Down
4 changes: 2 additions & 2 deletions src/Expression/Binary.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Expression;
namespace SQLBuilder\Expression;


use Helper;
use SQLBuilder\Helper;

class Binary extends Expression
{
Expand Down
4 changes: 2 additions & 2 deletions src/Expression/Column.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Expression;
namespace SQLBuilder\Expression;


use Helper;
use SQLBuilder\Helper;

class Column extends Expression
{
Expand Down
4 changes: 2 additions & 2 deletions src/Expression/Expression.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace Expression;
namespace SQLBuilder\Expression;


use Stringable_;
use SQLBuilder\Stringable_;

abstract class Expression implements Stringable_
{
Expand Down
Loading

0 comments on commit b92ee54

Please sign in to comment.