Commit 3f57a544 authored by abkrim's avatar abkrim 😀
Browse files

README correction

parent 6e54309c
......@@ -12,14 +12,14 @@ This package will help to display database dbSchema information from terminal or
You can install the package via composer:
```bash
composer require --dev abkrim/db-dbSchema
composer require --dev abkrim/db-schema
```
## Usage
**Show Schema information in tabular form**
```bash
php artisan db-dbSchema:show
php artisan db-schema:show
```
Example output: Schema information in tabular form
......@@ -28,7 +28,7 @@ Example output: Schema information in tabular form
If you want to see a specific table then pass table name or Namespace\\\Model
```bash
php artisan db-dbSchema:show --t=tableName or --t=Namespace\\Model
php artisan db-schema:show --t=tableName or --t=Namespace\\Model
```
![database info commandline](./screenshots/tabular-single.png)
......@@ -38,7 +38,7 @@ _Note: Same condition will be applied for tables **list** view_
**Show Schema information in List**
```bash
php artisan db-dbSchema:list
php artisan db-schema:list
```
Example output: Schema information in list
......@@ -54,7 +54,7 @@ Avaliable Options in **show** and **list**:
**Show Table names and total rows**
```bash
php artisan db-dbSchema:simple
php artisan db-schema:simple
```
Example output: Tables name with rows count
......@@ -67,7 +67,7 @@ _Note: You may pass `--c=connectionName` or `-c connectionName` to display a spe
**Show table definition**
```bash
php artisan db-dbSchema:table --t=tableName or --t=Namespace\\Model
php artisan db-schema:table --t=tableName or --t=Namespace\\Model
```
Example output: Table definition with default page and limit
......@@ -86,14 +86,14 @@ Avaliable Options in **table**:
```bash
php artisan db-dbSchema:table --t=countries --p=4 --o=id:desc --l=25
php artisan db-schema:table --t=countries --p=4 --o=id:desc --l=25
```
**Perform raw sql query**
```bash
php artisan db-dbSchema:query --r="your sql query"
php artisan db-schema:query --r="your sql query"
```
Example output: Query result will be dumped in console
......@@ -109,7 +109,7 @@ Avaliable Options in **query**:
**Monitor database server**
```bash
php artisan db-dbSchema:monitor
php artisan db-schema:monitor
```
Example output: Showing the database status
......@@ -118,7 +118,7 @@ Example output: Showing the database status
You can pass --i=integerNumber as refresh time interval and --c=ConnectionName as well
```bash
php artisan db-dbSchema:monitor --i=3 --c=secondaryDatabase
php artisan db-schema:monitor --i=3 --c=secondaryDatabase
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment