From b92ee54ed2a0b6d28392bdb28d33a1c1640624ad Mon Sep 17 00:00:00 2001 From: masterWeber Date: Wed, 6 Jan 2021 14:27:57 +0300 Subject: [PATCH] Moved \ to SQLBuilder\ --- composer.json | 33 +++++++++--------- src/Block/FromBlock.php | 6 ++-- src/Block/LimitBlock.php | 6 ++-- src/Block/OrderByBlock.php | 6 ++-- src/Block/WhereBlock.php | 6 ++-- src/Clause/Assignment.php | 8 ++--- src/Clause/AssignmentList.php | 7 ++-- src/Clause/Condition.php | 46 +++++++++++++------------- src/Clause/From.php | 8 ++--- src/Clause/GroupCondition.php | 2 +- src/Clause/Join.php | 6 ++-- src/Clause/Limit.php | 4 +-- src/Clause/Offset.php | 4 +-- src/Clause/On.php | 4 +-- src/Clause/OrderBy.php | 8 ++--- src/Clause/Set.php | 6 ++-- src/Clause/ValueList.php | 4 +-- src/Clause/Where.php | 2 +- src/DataType/Default_.php | 4 +-- src/DataType/Unknown.php | 4 +-- src/Expression/Between.php | 4 +-- src/Expression/Binary.php | 4 +-- src/Expression/Column.php | 4 +-- src/Expression/Expression.php | 4 +-- src/Expression/In.php | 6 ++-- src/Expression/Is.php | 4 +-- src/Expression/IsNot.php | 2 +- src/Expression/Like.php | 4 +-- src/Expression/NotBetween.php | 2 +- src/Expression/NotIn.php | 2 +- src/Expression/NotLike.php | 2 +- src/Expression/NotRegExp.php | 2 +- src/Expression/Raw.php | 2 +- src/Expression/RegExp.php | 4 +-- src/Helper.php | 4 +++ src/Operator/LogicalAnd.php | 2 +- src/Operator/LogicalNot.php | 2 +- src/Operator/LogicalOr.php | 2 +- src/Operator/LogicalXor.php | 2 +- src/Operator/Operator.php | 4 +-- src/Query/Delete.php | 6 ++-- src/Query/InsertInto.php | 9 +++-- src/Query/Query.php | 2 +- src/Query/Select.php | 8 ++--- src/Query/Update.php | 8 ++--- src/{SqlBuilder.php => SQLBuilder.php} | 12 ++++--- src/Stringable_.php | 2 ++ src/Value.php | 2 ++ tests/Clause/AssignmentListTest.php | 5 +-- tests/Clause/AssignmentTest.php | 3 +- tests/Clause/ConditionTest.php | 1 + tests/Clause/FromTest.php | 1 + tests/Clause/JoinTest.php | 1 + tests/Clause/LimitTest.php | 1 + tests/Clause/OffsetTest.php | 1 + tests/Clause/OrderByTest.php | 1 + tests/Expression/ColumnTest.php | 1 + tests/Expression/RawTest.php | 1 + tests/Query/DeleteTest.php | 2 +- tests/Query/InsertIntoTest.php | 4 +-- tests/Query/SelectTest.php | 2 +- tests/Query/UpdateTest.php | 4 +-- tests/SqlBuilderTest.php | 5 +-- 63 files changed, 169 insertions(+), 149 deletions(-) rename src/{SqlBuilder.php => SQLBuilder.php} (71%) diff --git a/composer.json b/composer.json index 515f1f0..f3add5d 100644 --- a/composer.json +++ b/composer.json @@ -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": "*" } diff --git a/src/Block/FromBlock.php b/src/Block/FromBlock.php index 8c0ba7a..27f169a 100644 --- a/src/Block/FromBlock.php +++ b/src/Block/FromBlock.php @@ -1,11 +1,11 @@