@@ -47,6 +47,7 @@ The following versions of PHP are supported by this version.
4747* PHP 5.5
4848* PHP 5.6
4949* PHP 7.0
50+ * PHP 7.1
5051* HHVM
5152
5253## Usage
@@ -59,7 +60,7 @@ The following versions of PHP are supported by this version.
5960
6061### Examples
6162
62- We also provide [ Examples] ( example ) for following documentation.
63+ We also provide [ Examples] ( / example) for following documentation.
6364
6465### Connections
6566
@@ -133,6 +134,24 @@ $second = ConnectionManager::getInstance()->get('second');
133134
134135```
135136
137+ ##### Prefixing
138+
139+ On a shared database it is use full to to prefix tables with a specific name, e.g. application abbreviation. You need to
140+ set the prefix on your connection. The system is prefixing all table names automatically.
141+
142+ Add PHP 7.1 support
143+
144+ ``` php
145+ <?php
146+
147+ // setup prefixes
148+ $connection->setPrefix('custom_');
149+ $gateway = $connection->createGateway('user'); // connects to custom_user table
150+
151+ ```
152+
153+ As you can see you (as do mapper) pass the tablename and internally the tablename will be prefixed.
154+
136155#### Migration
137156
138157##### Easy schema setup with SQL
@@ -542,9 +561,9 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
542561[ ico-downloads ] : https://img.shields.io/packagist/dt/hawkbit/database.svg?style=flat-square
543562[ ico-coveralls ] : https://img.shields.io/coveralls/HawkBitPhp/hawkbit-database/master.svg?style=flat-square
544563
545- [ link-packagist ] : https://packagist.org/packages/hawkbit/hawkbit
546- [ link-travis ] : https://travis-ci.org/HawkBitPhp/hawkbit
547- [ link-downloads ] : https://packagist.org/packages/hawkbit/hawkbit
564+ [ link-packagist ] : https://packagist.org/packages/hawkbit/hawkbit-database
565+ [ link-travis ] : https://travis-ci.org/HawkBitPhp/database
566+ [ link-downloads ] : https://packagist.org/packages/hawkbit/hawkbit-database
548567[ link-author ] : https://github.com/mbunge
549568[ link-contributors ] : ../../contributors
550- [ link-coveralls ] : https://coveralls.io/github/HawkBitPhp/hawkbit
569+ [ link-coveralls ] : https://coveralls.io/github/HawkBitPhp/hawkbit-database
0 commit comments