diff --git a/README.md b/README.md index f15f4c2..788d0db 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -SREQB +QB === A PHP Query Builder \ No newline at end of file diff --git a/composer.json b/composer.json index 92c3c16..d7a83ee 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { - "name": "sourcegr/sreqb", + "name": "sourcegr/query-builder", "type": "library", - "description": "SREQB is a query builder for easy SQL queries.", + "description": "QB is a query builder for easy SQL queries.", "license": "MIT", "authors": [ { @@ -15,10 +15,10 @@ "ext-pdo": "*" }, "autoload": { - "psr-4": {"Sre\\": "src/"} + "psr-4": {"Sourcegr\\QueryBuilder\\": "src/"} }, "autoload-dev": { - "psr-4": {"Test\\": "test/"} + "psr-4": {"Tests\\": "tests/"} }, "require-dev": { "phpunit/phpunit": "^9.3" diff --git a/composer.lock b/composer.lock index ddc3279..f5f20ac 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a2e2e8ef56126cfb4eb3a3cc69f9d736", + "content-hash": "9cc9dfc6a0da0c954837ca8670fecd82", "packages": [], "packages-dev": [ { @@ -1049,16 +1049,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "e717aabeafe4eac045d3e947dad3207118664c72" + "reference": "7a8ff306445707539c1a6397372a982a1ec55120" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e717aabeafe4eac045d3e947dad3207118664c72", - "reference": "e717aabeafe4eac045d3e947dad3207118664c72", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7a8ff306445707539c1a6397372a982a1ec55120", + "reference": "7a8ff306445707539c1a6397372a982a1ec55120", "shasum": "" }, "require": { @@ -1115,7 +1115,7 @@ "type": "github" } ], - "time": "2020-09-28T05:31:46+00:00" + "time": "2020-09-30T06:47:25+00:00" }, { "name": "sebastian/complexity", diff --git a/src/QueryBuilder/DB.php b/src/DB.php similarity index 88% rename from src/QueryBuilder/DB.php rename to src/DB.php index aa66abe..43324d5 100644 --- a/src/QueryBuilder/DB.php +++ b/src/DB.php @@ -1,10 +1,10 @@ errorInfo(); - throw new UpdateErrorException($info[0] . ': ' . $info[2] . ' (' . $info[1] . ')'); + throw new DeleteErrorException($info[0] . ': ' . $info[2] . ' (' . $info[1] . ')'); } return $st->rowCount(); diff --git a/src/QueryBuilder/NotNullAdder.php b/src/NotNullAdder.php similarity index 94% rename from src/QueryBuilder/NotNullAdder.php rename to src/NotNullAdder.php index 6de5505..00d8d34 100644 --- a/src/QueryBuilder/NotNullAdder.php +++ b/src/NotNullAdder.php @@ -1,7 +1,7 @@