An open API service indexing awesome lists of open source software.

https://github.com/muhdfaiz/laravel-tail-db

Artisan command to monitor realtime sql queries executed by the application
https://github.com/muhdfaiz/laravel-tail-db

database laravel monitoring mysql optimize postgresql sqlite

Last synced: 5 months ago
JSON representation

Artisan command to monitor realtime sql queries executed by the application

Awesome Lists containing this project

README

          

# Laravel Tail DB

[![tests](https://github.com/muhdfaiz/laravel-tail-db/workflows/testing/badge.svg)](https://github.com/muhdfaiz/laravel-tail-db/actions)
[![Version](https://poser.pugx.org/muhdfaiz/laravel-tail-db/version)](//packagist.org/packages/muhdfaiz/laravel-tail-db)
[![Total Downloads](https://poser.pugx.org/muhdfaiz/laravel-tail-db/downloads)](//packagist.org/packages/muhdfaiz/laravel-tail-db)
[![License](https://poser.pugx.org/muhdfaiz/laravel-tail-db/license)](//packagist.org/packages/muhdfaiz/laravel-tail-db)

An artisan command to monitor, troubleshoot and optimize SQL query using console.

## Features

- **Monitor SQL query.** Display Realtime SQL query executed from application in the console.

- **Optimize SQL query.** Automatically run `explain` command and output to console.

- **Detect slow SQL query.** Highlight slow SQL query according to your config.

## Requirements

- PHP: ^7.0
- Laravel: ~5.5,~5.6,~5.7,~5.8,~6.0,~7.0,~8.0
- Lumen

## Installation

```
composer require muhdfaiz/laravel-tail-db
```

## Publish Config File

```
php artisan vendor:publish --provider="Muhdfaiz\LaravelTailDb\TailDatabaseServiceProvider" --tag="tail-db-config"
```

## Usage

```
php artisan tail:db
```

## Documentation

For detail of installation instructions, in-depth usage, please take a look at the [documentation](https://laravel-tail-db.muhdfaiz.com/).

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

### Roadmap

Create desktop app to monitor the sql query.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.