Download the PHP package ride/cli-database without Composer
On this page you can find all versions of the php package ride/cli-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cli-database
Ride: Database CLI
This module adds various database commands to the Ride CLI.
Commands
database
This command shows an overview of the database connections in the manager.
Syntax:
Alias:
database convert utf8
This command converts all tables from the provided database connection to UTF-8.
Syntax:
- : Name of the connection
Alias:
database create
This command creates the database on the server of the connection if it does not exist.
Syntax:
- : Name of the connection
- : Default charset for the database (default utf8)
- : Default collation for the database (default utf8_general_ci)
Alias:
database default
This command gets or sets the name of the default database connection.
Syntax:
- : Name of the connection
Alias:
database drop
This command drops the database on the server of the connection if it exists.
Syntax:
- : Name of the connection
Alias: dbdr
database add
This command registers a database connection in the manager.
Syntax:
- : Name for the connection
- : DSN of the connection (protocol://username:password@host:port/database)
Alias:
database status
This command gets the status of a connection.
Syntax:
- : Name of the connection
Alias:
database delete
This command unregisters a database connection from the manager.
Syntax:
- : Name for the connection
Alias:
database driver
This command shows an overview of the available database drivers.
Syntax:
database query
This command executes a SQL query on the default database connection.
Syntax:
- : Name of the connection to use
- : The SQL script to execute
Alias: or
Related Modules
Installation
You can use Composer to install this application.
All versions of cli-database with dependencies
ride/app-database Version ^1.0.0
ride/cli Version ^1.0.0
ride/lib-cli Version ^1.0.0
ride/lib-database Version ^1.0.0
ride/lib-log Version ^1.0.0