Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kristuff authored Apr 8, 2022
2 parents e3719c0 + 58c6437 commit bf2ec5b
Show file tree
Hide file tree
Showing 33 changed files with 72 additions and 76 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'

services:
- mysql
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.

### Changed
- **Possible break change** PHP Strict types.
- New `DatabaseDriver::isForeignKeyEnabled()` method (`bool`) added for compatibility (implemented on sqlite, returns true by other drivers as there is now way to disable FK).
- New `DatabaseDriver::isForeignKeyEnabled()` method (`bool`) added for compatibility (implemented on sqlite, returns true by other drivers as there is no way to disable FK).

## [v0.5] - 2020-10-08

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017-2021 Kristuff
Copyright (c) 2017-2022 Christophe Buliard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

A database/server SQL query builder for PHP.

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/398308d1225049f58ae583065608c460)](https://www.codacy.com/app/kristuff_/patabase?utm_source=github.com&utm_medium=referral&utm_content=kristuff/patabase&utm_campaign=Badge_Grade)
[![Code Climate](https://codeclimate.com/github/kristuff/patabase/badges/gpa.svg)](https://codeclimate.com/github/kristuff/patabase)
[![Build Status](https://travis-ci.com/kristuff/patabase.svg?branch=master)](https://travis-ci.com/kristuff/patabase)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kristuff/patabase/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/kristuff/patabase/?branch=master)
[![Build Status](https://travis-ci.org/kristuff/patabase.svg?branch=master)](https://travis-ci.org/kristuff/patabase)
[![codecov](https://codecov.io/gh/kristuff/patabase/branch/master/graph/badge.svg)](https://codecov.io/gh/kristuff/patabase)
[![Latest Stable Version](https://poser.pugx.org/kristuff/patabase/v/stable)](https://packagist.org/packages/kristuff/patabase)
[![License](https://poser.pugx.org/kristuff/patabase/license)](https://packagist.org/packages/kristuff/patabase)
Expand Down Expand Up @@ -94,7 +92,7 @@ License

The MIT License (MIT)

Copyright (c) 2017-2021 Kristuff
Copyright (c) 2017-2022 Christophe Buliard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions lib/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase;
Expand Down
6 changes: 3 additions & 3 deletions lib/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase;
Expand Down Expand Up @@ -235,7 +235,7 @@ public function update(string $tableName): Update
* @access public
* @param string $tableName The name of the table
*
* @return Query\Table\Delete
* @return Query\Delete
*/
public function delete(string $tableName): Delete
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Datasource.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/DriverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/Mysql/MysqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver\Mysql;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/Postgres/PostgresDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver\Postgres;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/ServerDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/Sqlite/SqliteDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver\Sqlite;
Expand Down
4 changes: 2 additions & 2 deletions lib/Driver/Sqlite/SqliteDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Driver\Sqlite;
Expand Down
4 changes: 2 additions & 2 deletions lib/Exception/InvalidArgException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Exception;
Expand Down
4 changes: 2 additions & 2 deletions lib/Exception/MissingArgException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Exception;
Expand Down
4 changes: 2 additions & 2 deletions lib/Exception/PatabaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Exception;
Expand Down
4 changes: 2 additions & 2 deletions lib/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase;
Expand Down
5 changes: 2 additions & 3 deletions lib/Query/CreateTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down Expand Up @@ -97,7 +97,6 @@ public function ifNotExists()
* Add a column to the list of column definition
*
* @access public
* @param mixed column definition
*
* @return $this
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/Having.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/Insert.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
11 changes: 4 additions & 7 deletions lib/Query/InsertBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;

use Kristuff\Patabase;
use Kristuff\Patabase\Database;
use Kristuff\Patabase\Query;
use Kristuff\Patabase\Query\QueryBuilder;
use Kristuff\Patabase\Driver\DatabaseDriver;

Expand All @@ -44,8 +41,8 @@ abstract class InsertBase extends QueryBuilder
* Constructor
*
* @access public
* @param Driver\DatabaseDriver $driver The driver instance
* @param string $tableName The table name
* @param DatabaseDriver $driver The driver instance
* @param string $tableName The table name
*/
public function __construct(DatabaseDriver $driver, $tableName)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/QueryBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
8 changes: 4 additions & 4 deletions lib/Query/QueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down Expand Up @@ -148,9 +148,9 @@ public function beginOr()
* Close OR group condition
*
* @access public
* @return $this
* @return QueryBuilder
*/
public function closeOr()
public function closeOr(): QueryBuilder
{
return $this->closeGroup();
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/SelectBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
4 changes: 2 additions & 2 deletions lib/Query/Where.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase\Query;
Expand Down
7 changes: 4 additions & 3 deletions lib/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @version 1.0.0
* @copyright 2017-2021 Kristuff
* @version 1.0.1
* @copyright 2017-2022 Christophe Buliard
*/

namespace Kristuff\Patabase;

use Kristuff\Patabase\Driver;
use Kristuff\Patabase\Datasource;
use Kristuff\Patabase\Driver;
use Kristuff\Patabase\Driver\ServerDriver;

/**
* Class Server
Expand Down
Loading

0 comments on commit bf2ec5b

Please sign in to comment.