sundflux / libvaloa-db
Database component for Libvaloa.
Requires
- php: >=7.2.19
README
Libvaloa is a set of standalone open source utility libraries, which make base for Webvaloa platform.
Libvaloa components aim for top-tier code quality, security and modern design patterns.
All Libvaloa components are licensed with permissive MIT license.
This package adds minimal abstraction layer for PDO connections.
Installation
Install the latest version with composer require sundflux/libvaloa-db
or include libvaloa in your composer.json
{ "require": { "sundflux/libvaloa-db": "^3.0.0" } }
Requirements
- PHP 7.2.19
Features
- Chainable value setters
- Resultsets as objects
- Generate table models from yaml configs
Copyright and license
Copyright (C) 2019 Tarmo Alexander Sundström & contributors.
Libvaloa is licensed under the MIT License - see the LICENSE file for details.
Contact
Change Log
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
Changes are grouped by added, fixed or changed feature.
[3.0.14] - 2019-09-15
- Add Constraints::getReferences.
[3.0.13] - 2019-09-14
- Remove some debugging.
[3.0.12] - 2019-09-12
- Change default ON DELETE to RESTRICT.
- Add setter for primaryKey.
[3.0.11] - 2019-09-12
- Add Db\Constraints for generating foreign keys automatically. Works when primary keys are named "id" and referenced columns like "tablename_id".
[3.0.10] - 2019-09-11
- Oops, hotfix.
[3.0.9] - 2019-09-11
- Separate Db\Column from Db\Item.
[3.0.8] - 2019-09-08
- Adds better debugging for Exception cases so Whoops error page gets some useful information.
[3.0.7] - 2019-09-06
- Fix setter in \Item.
[3.0.6] - 2019-09-05
- Fix exception throwing in ResultSet.
- Debug print out failed prepared query.
[3.0.5] - 2019-09-01
- Versioning fixes.
[3.0.4] - 2019-09-01
- Hotfix, fix queryCount capitalization.
[3.0.3] - 2019-09-01
- Small cleanups, doctag updates.
- Add \Model\Table for generating table schemas from yaml configs.
- Remove generate_documentation.sh (helper script for phpdoc)
[3.0.2] - 2019-05-25
- Code and documentation cleanups.
[3.0.1] - 2019-05-13
- Fix missing exception include in ResultSet.
[3.0.0] - 2019-04-13
- Bumped version requirement to PHP 7.2
- First version separated from Libvaloa. See Libvaloa changelog for earlier changes.