This is the Maleficarum Database component. It carries classes used to persist data in storage.
\Maleficarum\Database\Shard\Connection\AbstractConnection::prepareStatement
able to re-use prepared statements- Collection re-uses prepared statement
- Model using prepared statements in a wrong way
- Reverting 4.1.1 as it was not a bug in the driver but in my brain
- MSSQL Model not reusing prepared statements as driver has a bug
- Being able to insert huge collections from MS SQL Server
NOTICE!!! Please use >= 4.1.1 as this one has a serious bug
- Being able to fetch huge collections from MS SQL Server
- NOTICE:
\Maleficarum\Database\Shard\Connection\AbstractConnection::prepare
has been deprecated and will throw an\LogicException
.prepareStatement
should be used instead. - Throw
\Maleficarum\Database\Exception\Exception
on connection failure, eg. due to missing driver - Don't break
\PDO
constructor contract when using\Maleficarum\Database\Initializer\Initializer
- MSSQL connection does not cast all columns to string
- For MSSQL connection use the
sqlsrv
driver instead of obsoletedblib
- Charset setting removed. It's always UTF-8
- Make use of nullable types provided in PHP 7.1 (http://php.net/manual/en/migration71.new-features.php)
- Merge data only if query returns an array on update
- Merge data only if query returns an array on create
- Set database charset only if is defined
- Set MSSQL specific connection options to handle inserts
- Add MSSQL connection handler
- Add model & collection classes for MSSQL
- Update initializer
- Default initializer now has an option to skip loading default builder functions.
- Default package initializer now properly returns it's name instead of null.
- Added IOC definitions specific to this package.
- This is an initial release of the component - based on the code written by me and included inside the maleficarum API repository.