All Projects → squareboat → Sql Doctor

squareboat / Sql Doctor

Licence: mit
Quickly debugging the amount of database queries per request in Laravel.

Labels

Projects that are alternatives of or similar to Sql Doctor

Examples
Demo applications and code examples for Confluent Platform and Apache Kafka
Stars: ✭ 571 (+919.64%)
Mutual labels:  sql
Rqlite
The lightweight, distributed relational database built on SQLite
Stars: ✭ 9,147 (+16233.93%)
Mutual labels:  sql
Client
PHP client for Tarantool.
Stars: ✭ 52 (-7.14%)
Mutual labels:  sql
Joiner
A simple utility for SQL-like joins with Json, GeoJson or dbf data in Node, the browser and on the command line. Also creates join reports so you can know how successful a given join was. Try it in the browser -->
Stars: ✭ 47 (-16.07%)
Mutual labels:  sql
Sqlformat
.NET SQL Parser and Formatter Tool and SSMS Plugin
Stars: ✭ 49 (-12.5%)
Mutual labels:  sql
Gitbase Web
gitbase web client; source{d} CE comes with a new UI, check it at https://docs.sourced.tech/community-edition/
Stars: ✭ 51 (-8.93%)
Mutual labels:  sql
Jl Sql
SQL for JSON and CSV streams
Stars: ✭ 44 (-21.43%)
Mutual labels:  sql
Aspnetcorenlog
ASP.NET Core NLog MS SQL Server PostgreSQL MySQL Elasticsearch
Stars: ✭ 54 (-3.57%)
Mutual labels:  sql
Devops Exercises
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
Stars: ✭ 20,905 (+37230.36%)
Mutual labels:  sql
Ddlparse
DDL parase and Convert to BigQuery JSON schema and DDL statements
Stars: ✭ 52 (-7.14%)
Mutual labels:  sql
Base
https://www.researchgate.net/profile/Rajah_Iyer
Stars: ✭ 48 (-14.29%)
Mutual labels:  sql
Sonar Tsql Plugin
T-SQL language plugin for SonarQube
Stars: ✭ 49 (-12.5%)
Mutual labels:  sql
Example Auth
User auth, session & JWT example for ReactQL
Stars: ✭ 51 (-8.93%)
Mutual labels:  sql
Sqlservermetadata
SQL Server Metadata Toolkit
Stars: ✭ 47 (-16.07%)
Mutual labels:  sql
Semester Biology
Stars: ✭ 52 (-7.14%)
Mutual labels:  sql
Cosyan
Transactional SQL based RDBMS with sophisticated multi table constraint logic.
Stars: ✭ 45 (-19.64%)
Mutual labels:  sql
Ppx pgsql
Syntax extension for embedded SQL queries using PG'OCaml.
Stars: ✭ 50 (-10.71%)
Mutual labels:  sql
Postgres.py
A nice PostgreSQL client library
Stars: ✭ 54 (-3.57%)
Mutual labels:  sql
Fluent
Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
Stars: ✭ 1,071 (+1812.5%)
Mutual labels:  sql
Sql Boot
Advanced REST-wrapper for your SQL-queries (actually not only SQL)
Stars: ✭ 51 (-8.93%)
Mutual labels:  sql

Debugging Database Queries

Quickly debugging the amount of database queries per request in Laravel.

sql-doctor example image

Install

Install via composer

For Laravel <= 5.3, please use the 1.1 branch!

$ composer require squareboat/sql-doctor

Configure Laravel

If you are using laravel 5.5 or higher you should skip this step.

If you are using laravel 5.4, simply add the service provider to your project's config/app.php file:

Service Provider

SquareBoat\SqlDoctor\SqlDoctorServiceProvider::class,

Usage

Now while your app.debug is set true then on any URL you can append ?sql-doctor=1 and get an output of complete list of queries that ran.

Query Param Value Output
sql-doctor 1 Default query
sql-doctor 2 Binds values to their parameters in the query.

Credits

SQL Doctor, originally developed after the reddit thread by magkopian.

License

The MIT License. Please see License File for more information. Copyright © 2017 SquareBoat

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].