Skip to content

Commit a805951

Browse files
author
Fredrick Peter
committed
Version Update
1 parent 6a84608 commit a805951

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or
104104
**Step 1** — update your `composer.json`:
105105
```composer.json
106106
"require": {
107-
"peterson/php-orm-database": "^1.0.5"
107+
"peterson/php-orm-database": "^2.1.1"
108108
}
109109
```
110110

@@ -183,6 +183,8 @@ $db->table('users')
183183
</details>
184184

185185
## More Database Connection Keys
186+
<details><summary>Read more...</summary>
187+
186188
- All available connection keys
187189
- The DRIVER_NAME uses only `mysql`
188190
- No other connection type is supported for now.
@@ -199,7 +201,7 @@ $db->table('users')
199201
| DB_PORT | int | `3306` |
200202
| DB_CHARSET | string | `utf8mb4_unicode_ci` |
201203
| DB_COLLATION | string | `utf8mb4` |
202-
204+
</details>
203205

204206
## Usage
205207
- All Methods of usage
@@ -250,6 +252,8 @@ $db->table('users')
250252
```
251253

252254
### Update Or Ignore
255+
<details><summary>Read more...</summary>
256+
253257
- Same as `update()` method
254258
- Returns an `int` numbers of affected rows or `0` on error
255259

@@ -260,6 +264,7 @@ $db->table('users')
260264
'first_name' => 'Alfred C.',
261265
]);
262266
```
267+
</details>
263268

264269
### Delete
265270
- Returns an `int`
@@ -271,11 +276,11 @@ $db->table('users')
271276
```
272277

273278
### Increment
279+
<details><summary>Read more...</summary>
280+
274281
- Takes three parameter
275282
- Only the first param is required
276283

277-
<details><summary>Read more...</summary>
278-
279284
| param | Data types |
280285
|-------------------|-----------------|
281286
| column `required` | string |
@@ -1119,8 +1124,9 @@ Migration::run('column', 'column_name);
11191124
## Optimize-table
11201125
- Database table optimization
11211126

1122-
<details><summary>Read more...</summary>
11231127
### Optimize
1128+
<details><summary>Read more...</summary>
1129+
11241130
- Optimize Multiple Tables
11251131
- Takes a param as an `array` table_name
11261132
- This will automatically `Analize` and `Repair` each tables

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"extra": {
3939
"branch-alias": {
40-
"dev-main": "1.0.5-dev"
40+
"dev-main": "2.1.1-dev"
4141
}
4242
},
4343
"minimum-stability": "stable",

0 commit comments

Comments
 (0)