Support to show the status of a database

Open
#640 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
mysql, postgresql, sql
Domain
databases

Research direction

No files, entry points, or tests are named. Start by locating the database integration and status-display entry points, then clarify the intended behavior and supported status fields for the MySQL INFORMATION_SCHEMA.PROCESSLIST and Postgres pg_stat_activity queries. Done should mean the agreed database status is shown and covered by tests.

Written by the indexing model from the issue text.

Description

enhancement

Description:

Describe the desired behavior, what scenario it enables and how it
would be used.

[optional Relevant Links:]

Any extra documentation required to understand the issue.

MySQL

Get status via the following SQL:

SELECT *  FROM INFORMATION_SCHEMA.PROCESSLIST;

PostgresDB

SELECT 
  pid,                   -- Process ID
  usename AS username,   -- Connection user
  datname AS database, 
  client_addr AS host, 
  state,                 -- e.g., 'active', 'idle', 'idle in transaction'
  query                  -- Current/last executed query
FROM pg_stat_activity;
Dominant language
Go
Stars
370
Forks
69
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinuxSuRen/api-testing

All issues in LinuxSuRen/api-testing

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.