Compare commits
5 commits
feature/sh
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1a9657d8e | ||
|
|
4c65bf7297 | ||
|
|
730df7b534 | ||
|
|
02af779f69 | ||
|
|
595ddd2270 |
4 changed files with 13 additions and 8 deletions
12
CHANGELOG.MD
12
CHANGELOG.MD
|
|
@ -1,8 +1,8 @@
|
|||
# Changelog
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Added
|
||||
|
||||
- Successful print message for each query will now also show the number of rows returned by the query.
|
||||
## [0.2.0] - 2022-07-26
|
||||
|
||||
### Added
|
||||
- Sessions will now print the number of rows obtained from each successfully executed query.
|
||||
- The tool version is now printed at the beginning of each session to leave a proper trace of what was the running
|
||||
version for a results file.
|
||||
1
_version.py
Normal file
1
_version.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
__version__ = "0.2.0"
|
||||
|
|
@ -6,6 +6,7 @@ import mysql.connector.connection
|
|||
import trino.dbapi
|
||||
|
||||
from connections import get_connection, clean_up_connection
|
||||
from _version import __version__
|
||||
|
||||
|
||||
def run_measuring_session(config: dict) -> None:
|
||||
|
|
@ -15,6 +16,7 @@ def run_measuring_session(config: dict) -> None:
|
|||
:param config: the full config for the measuring session.
|
||||
:return: None
|
||||
"""
|
||||
print(f"Query Performance Gauge - Version: {__version__}")
|
||||
print("Starting the measuring session.")
|
||||
|
||||
connection = get_connection(config["connection_details"])
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -1,11 +1,13 @@
|
|||
from setuptools import setup, find_packages
|
||||
|
||||
from _version import __version__
|
||||
|
||||
with open('requirements.txt', encoding="utf-16") as f:
|
||||
|
||||
with open("requirements.txt", encoding="utf-16") as f:
|
||||
required = f.read().splitlines()
|
||||
|
||||
setup(
|
||||
version="0.1.0",
|
||||
version=__version__,
|
||||
name="query_performance_gauge",
|
||||
packages=find_packages(),
|
||||
description="Measure how long queries take.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue