Skip to content

Commit 8385cfa

Browse files
committed
:octocat: class Statement renamed to StatementAbstract, introduced Statement interface
1 parent c55901b commit 8385cfa

20 files changed

+418
-385
lines changed

src/Query/Alter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace chillerlan\Database\Query;
1313

14-
class Alter extends Statement{
14+
class Alter extends StatementAbstract{
1515

1616
public function table(string $tablename):AlterTable{
1717
return (new AlterTable($this->db, $this->dialect, $this->logger))->name($tablename);

src/Query/AlterDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @link https://docs.microsoft.com/en-gb/sql/t-sql/statements/alter-database-transact-sql
1818
* @link https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-ddl-db.html#fblangref25-ddl-db-alter
1919
*/
20-
class AlterDatabase extends Statement implements Query{
20+
class AlterDatabase extends StatementAbstract implements Query{
2121

2222
public function name(string $dbname):static{
2323
return $this->setName($dbname);

src/Query/AlterTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @link https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-ddl-tbl.html#fblangref25-ddl-tbl-alter
1919
* @link https://www.sqlite.org/lang_altertable.html
2020
*/
21-
class AlterTable extends Statement implements Query{
21+
class AlterTable extends StatementAbstract implements Query{
2222

2323
public function name(string $tablename):static{
2424
return $this->setName($tablename);

src/Query/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace chillerlan\Database\Query;
1313

14-
class Create extends Statement{
14+
class Create extends StatementAbstract{
1515

1616
# public function index():CreateIndex;
1717
# public function view():CreateView;

src/Query/CreateDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @link https://docs.microsoft.com/en-gb/sql/t-sql/statements/create-database-sql-server-transact-sql
1818
* @link https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-ddl-db.html#fblangref25-ddl-db-create
1919
*/
20-
class CreateDatabase extends Statement implements Query, IfNotExists{
20+
class CreateDatabase extends StatementAbstract implements Query, IfNotExists{
2121

2222
public function name(string $dbname):static{
2323
return $this->setName($dbname);

src/Query/CreateTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @link https://www.postgresql.org/docs/current/static/datatype.html
2424
* @link https://docs.microsoft.com/sql/t-sql/data-types/data-types-transact-sql
2525
*/
26-
class CreateTable extends Statement implements Query, IfNotExists{
26+
class CreateTable extends StatementAbstract implements Query, IfNotExists{
2727

2828
protected bool $temp = false;
2929
protected string|null $primaryKey = null;

src/Query/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @link https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-dml-delete.html
1919
* @link https://www.sqlite.org/lang_delete.html
2020
*/
21-
class Delete extends Statement implements Where, Limit, BindValues, Query{
21+
class Delete extends StatementAbstract implements Where, Limit, BindValues, Query{
2222

2323
public function from(string $name):static{
2424
return $this->setName($name);

src/Query/Drop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace chillerlan\Database\Query;
1313

14-
class Drop extends Statement{
14+
class Drop extends StatementAbstract{
1515

1616
public function database(string $dbname):DropDatabase{
1717
return (new DropDatabase($this->db, $this->dialect, $this->logger))->name($dbname);

src/Query/DropDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @link https://docs.microsoft.com/en-gb/sql/t-sql/statements/drop-database-transact-sql
1818
* @link https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-ddl-db.html#fblangref25-ddl-db-drop
1919
*/
20-
class DropDatabase extends Statement implements Query, IfExists{
20+
class DropDatabase extends StatementAbstract implements Query, IfExists{
2121

2222
public function name(string $dbname):static{
2323
return $this->setName($dbname);

src/Query/DropTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @link https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25-ddl-tbl.html#fblangref25-ddl-tbl-drop
1919
* @link https://www.sqlite.org/lang_droptable.html
2020
*/
21-
class DropTable extends Statement implements Query, IfExists{
21+
class DropTable extends StatementAbstract implements Query, IfExists{
2222

2323
public function name(string $name):static{
2424
return $this->setName($name);

0 commit comments

Comments
 (0)