8000 GitHub - z-song/db-console: A Database Console
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

z-song/db-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#DB Console

DB Console is a database console with support for Mysql, Sqlite, Mongodb and Redis.

Screenshots

Mysql:

ff11be54-5cc8-4790-876b-a4950d00fe32

MongoDB:

9e0543f3-c44b-44a9-9419-9d55da21c540

Redis:

51a07cbe-089e-428b-a1a3-01bc47da4207

Installation

composer require encore/dbconsole --dev

Configuration

See database.php.

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use Encore\Dbconsole\Shell;

$shell = new Shell(__DIR__ . '/config/database.php');

// Also you can specify a connection which in your configuration.
//$shell->setConnection('redis');

$shell->run();

And run this script in your console.

Work with Laravel

When use in Laravel, it will use the database configuration in application.

Add service provider to config/app.php in providers section:

Encore\Dbconsole\Providers\LaravelServiceProvider::class

then run DB Console with:

php artisan db:console

About

A Database Console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0