2017 © Pedro Peláez
 

library cli-database

Database commands for the Ride CLI

image

ride/cli-database

Database commands for the Ride CLI

  • Tuesday, November 8, 2016
  • by ride-user
  • Repository
  • 7 Watchers
  • 0 Stars
  • 2,712 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 2 % Grown

The README.md

Ride: Database CLI

This module adds various database commands to the Ride CLI., (*1)

Commands

database

This command shows an overview of the database connections in the manager., (*2)

Syntax: database, (*3)

Alias: db, (*4)

database convert utf8

This command converts all tables from the provided database connection to UTF-8., (*5)

Syntax: database convert utf8 <name> - <name>: Name of the connection, (*6)

Alias: dbutf8, (*7)

database create

This command creates the database on the server of the connection if it does not exist., (*8)

Syntax: database create [<name> [<charset> [<collation>]]] - <name>: Name of the connection - <charset>: Default charset for the database (default utf8) - <collation>: Default collation for the database (default utf8_general_ci), (*9)

Alias: dbc, (*10)

database default

This command gets or sets the name of the default database connection., (*11)

Syntax: database default <name> - <name>: Name of the connection, (*12)

Alias: dbdef, (*13)

database drop

This command drops the database on the server of the connection if it exists., (*14)

Syntax: database drop <name> - <name>: Name of the connection, (*15)

Alias: dbdr, (*16)

database add

This command registers a database connection in the manager., (*17)

Syntax: database add <name> <dsn> - <name>: Name for the connection - <dsn>: DSN of the connection (protocol://username:password@host:port/database), (*18)

Alias: dba, (*19)

database status

This command gets the status of a connection., (*20)

Syntax: database status [<name>] - <name>: Name of the connection, (*21)

Alias: dbs, (*22)

database delete

This command unregisters a database connection from the manager., (*23)

Syntax: database delete <name> - <name>: Name for the connection, (*24)

Alias: dbd, (*25)

database driver

This command shows an overview of the available database drivers., (*26)

Syntax: database driver, (*27)

database query

This command executes a SQL query on the default database connection., (*28)

Syntax: database query [--connection] [<sql>] - --connection: Name of the connection to use - <sql>: The SQL script to execute, (*29)

Alias: dbq or query, (*30)

Installation

You can use Composer to install this application., (*31)

composer require ride/cli-database

The Versions

08/11 2016

dev-master

9999999-dev

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

08/11 2016

dev-develop

dev-develop

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

08/11 2016
14/10 2016
28/09 2015

0.3.2

0.3.2.0

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

27/09 2015

0.3.1

0.3.1.0

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

27/09 2015

0.3.0

0.3.0.0

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

07/05 2014

0.2.1

0.2.1.0

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

20/03 2014

0.2.0

0.2.0.0

Database commands for the Ride CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

14/01 2014

0.1.0

0.1.0.0

Database commands for the Pallo CLI

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd