2017 © Pedro Peláez
 

library l5-db-commands

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

image

mayconbordin/l5-db-commands

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

  • Tuesday, September 12, 2017
  • by mayconbordin
  • Repository
  • 3 Watchers
  • 5 Stars
  • 904 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

l5-db-commands

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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

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

Installation

In order to install just add, (*4)

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

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

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

'Mayconbordin\DbCommands\DbCommandsServiceProvider'

in the providers array., (*7)

Commands

db:create [options]

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

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

db:drop [options]

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

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

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>., (*12)

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

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., (*14)

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

db:shell [options]

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

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

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

db:exec:sql [options] [--] <file>

Execute SQL file from <file> to an existing database with the default connection from the configuration file., (*19)

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

The Versions

12/09 2017

dev-master

9999999-dev https://github.com/mayconbordin/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

12/09 2017

v1.1

1.1.0.0 https://github.com/mayconbordin/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

02/01 2016

v1.0

1.0.0.0 https://github.com/mayconbordin/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