getslowestdbqueries

command module
v0.0.0-...-e205ec6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 1 Imported by: 0

README

Get Slowest Query DB

This Simple Api Write With Fiber Freamwork and that will return the slowest connected database queries

Run

If you run this API first you need to import slowest_query_db.sql to postgres server and then set server option in env folder

please set PivotTimetoCheckSlowesQuery in env folder base on milisecond

go run main.go

This Simple Api

Support pagination For Get List Slowest Querys

Support filtering by SELECT,INSERT,UPDATE,DELETE on Get List Slowest Querys

Support sorting by time spent Slowest Querys

Route Unit test

If you want to run unit test for sure API work please run two golang unit test function in

pkg\routes\public_route_test.go

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
err
platform

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL