2017 © Pedro Peláez
 

library l5-db-commands

A set of commands to create/drop/dump/restore databases on Laravel 5

image

ksarien/l5-db-commands

A set of commands to create/drop/dump/restore databases on Laravel 5

  • Monday, September 4, 2017
  • by ksarien
  • Repository
  • 1 Watchers
  • 0 Stars
  • 124 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

l5-db-commands

A set of commands to create/drop/dump/restore/shell databases on Laravel 5., (*1)

Supported DBMSs: MySQL, PostgreSQL and SQLite., (*2)

Installation

In order to install just add, (*3)

"mayconbordin/l5-db-commands": "dev-master"

to your composer.json. Then run composer install or composer update., (*4)

Then in your config/app.php add, (*5)

'Mayconbordin\DbCommands\DbCommandsServiceProvider'

in the providers array., (*6)

Commands

db:create [options]

Create a new database with the default connection from the configuration file., (*7)

Options: - --database: The name of the database connection in the configuration file., (*8)

db:drop [options]

Drop an existing database with the default connection from the configuration file., (*9)

Options: - --database: The name of the database connection in the configuration file., (*10)

db:dump [options] [--] [<output>]

Dump the schema and data of an existing database with the default connection from the configuration file. By default the dump is printed on the screen, optionally it can be written to <output>., (*11)

Options: - --database: The name of the database connection in the configuration file. - --data-only: Dumps only the data., (*12)

db:restore [options] [--] <dump-file>

Restore the schema and data from <dump-file> to an existing database with the default connection from the configuration file., (*13)

Options: - --database: The name of the database connection in the configuration file., (*14)

db:shell [options]

Open a shell to an existing database with the default connection from the configuration file., (*15)

For PostgreSQL you might have to create a ~/.pgpass file with localhost:5432:mydbname:postgres:mypass and chmod 600., (*16)

Options: - --database: The name of the database connection in the configuration file., (*17)

The Versions

04/09 2017

dev-master

9999999-dev https://github.com/ksarien/l5-db-commands

A set of commands to create/drop/dump/restore databases on Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maycon Viana Bordin

database laravel laravel 5 commmands