Opis\Database\Model::getConnection
method was moved toOpis\Database\ModelInterface::getConnection
Model
class implementsModelInterface
interface and you must provide an implementation for theOpis\Database\ModelInterface::getConnection
method- Added
Opis\Database\Model::using
method - Added an optional
Opis\Database\Connection
argument to theOpis\Database\Model::create
method - The constructor of the
Opis\Database\Model
class accepts an optionalOpis\Database\Connection
argument - Removed unused artifacts
Opis\Database\SQL\WhereInterface
andOpis\Database\SQL\SelectStatement::addHavingClause
. See issue #19 and issue #18. - Various bugfixes. See issue #20 and issue #21.
- Fixed CS
- Added
Opis\Database\ResultSet::column
method. See issue #10 - The
Opis\Database\Model::getConnection
method is not abstract anymore. See issue issue #11
- The second argument of the
Opis\Database\Connection::column
method is now optional.
- Removed deprecated
Opis\Database\Schema\AlterTable::addPrimary
method - Removed deprecated
Opis\Database\Schema\AlterTable::addUnique
method - Removed deprecated
Opis\Database\Schema\AlterTable::addIndex
method - Removed deprecated
Opis\Database\Schema\AlterTable::addForeign
method - Removed
Opis\Database\DSN
class and all other classes that were under theOpis\Database\DSN
namespace - Added
Opis\Database\SQL\Compiler::getDateFormat
method - Added support for ORM
- Addes support for joins in
UPDATE
statementes - Moved classes that were under the
Opis\Database\Compiler
namespace toOpis\Database\SQL\Compiler
namespace - Added .gitattributes file
- Added
Opis\Database\Connection::setDateFormat
method. The method allows you to set the date format used by the compiler. - Added
Opis\Database\Connection::setWrapperFormat
method. The method allows you to set the identifier wrapper used by the compiler. - Added support for
NULL
values ordering
- Fixed a bug in
Opis\Database\SQL\Compiler::sqlFunctionROUND
- Fixed some bugs in
Opis\Database\Compiler\MySQL
compiler class
- Fixed various bugs
- Improved schema compilers
- Added
primary
,unique
,index
andforeign
methods toOpis\Database\Schema\AlterTable
class - The
addPrimary
,addUnique
,addIndex
andaddForeign
methods were deprecated inOpis\Database\Schema\AlterTable
class - The third argument of the
Opis\Database\Schema\AlterTable::renameColumn
method was removed - Added
Opis\Database\Connection::schema
method - Changed
Opis\Database\Database::schema
method. The schema object is now returned from the connection object. - Added
Opis\Database\Schema::getColumns
method - Schema compilers now takes as an argument the current connection
- Added an optional parameter to
Opis\Database\Connection
's constructor method. The parameter can be used to specify a the driver used by the current connection - Added
Opis\Database\Connection::driver
method - Bugfixes and improvements
- Added
Opis\Database\Schema\Compiler\SQLite
class. This class provides schema support for SQLite - Newly added
increment
anddecrement
methods can now be used when a row is updated
- Removed
branch-alias
fromcomposer.json
file - Fixed a bug that prevented boolean values to be as default value for a table's column.
- Fixed a bug where
text
andbinary
types were not mapped correctly.
- Fixed a bug (see opis#4)
- Modified
persistent
method inOpis\Database\Connection
. The method accepts now an optional boolean argument that specify if the connection should pe persistent or not. - Added
disconnect
method inOpis\Database\Connection
- Added
renameTable
method inOpis\Database\Schema\Compiler
- Added
renameTable
method inOpis\Database\Schema
- The
Opis\Database\Schema\BaseTable
'snullable
method was deprecated. - Fixed several bugs in
Opis\Database\Schema\Compiler
- Modified the
pdo
method inOpis\Database\Transaction
. ThePDO
object is no longer stored as a property, in order to avoid keeping the connection alive after thedisconnect
method was called.
- Fixed a bug in
Opis\Database\Schema\Complier
class.
- This is a full API change
- Changed
where
,andWhere
andorWhere
methods of theOpis\Database\SQL\WhereCondition
class. The methods accepts now a single argument, representing a column or a closure used to group conditions. - Added
is
,eq
,isNot
,ne
,lessThan
,lt
,greaterThan
,gt
,atLeast
,gte
,atMost
,lte
,between
,notBetween
,in
,notIn
,like
,notLike
,isNull
andnotNull
methods. This methods are used in conjunction with thewhere
,andWhere
andorWhere
methods. - Removed
whereBetween
,andWhereBetween
,orWhereBetween
,whereNotBetween
,andWhereNotBetween
andorWhereNotBetween
methods fromOpis\Database\SQL\WhereCondition
class. - Removed
whereIn
,andWhereIn
,orWhereIn
,whereNotIn
,andWhereNotIn
andorWhereNotIn
methods fromOpis\Database\SQL\WhereCondition
class. - Removed
whereLike
,andWhereLike
,orWhereLike
,whereNotLike
,andWhereNotLike
andorWhereNotLike
methods fromOpis\Database\SQL\WhereCondition
class. - Removed
whereNull
,andWhereNull
,orWhereNull
,whereNotNull
,andWhereNotNull
andorWhereNotNull
methods fromOpis\Database\SQL\WhereCondition
class. - Modified
join
,leftJoin
,rightJoin
,fullJoin
methods of theOpis\Database\SQL\WhereJoinCondition
class. - Modified
having
method of theOpis\Database\SQL\SelectStatement
class. - Removed
execute
method fromOpis\Database\SQL\Update
class. - Changed
set
method of theOpis\Database\SQL\Update
class. - Added
schema
method to theOpis\Database\Database
class. - The schema builder is now officially supported, although it is still marked as experimental.
- Modified
insert
command.
- Added autoload file
- Fixed a bug in
Opis\Database\SQL\Where
class.
- Removed
port
method fromOpis\Database\DSN\SQLServer
class - Added an extra optional argument to the
server
method ofOpis\Database\DSN\SQLServer
class - Fixed a bug in
Opis\Database\DSN\SQLite
class - Commented code
- Started changelog