{ "info": { "author": "Rebecca Barnes", "author_email": "rebeccaebarnes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Information Analysis" ], "description": "The SQL Test module assists in testing of data between SQL database tables. This is the development version of the module.\n\nUse examples include comparing data in a view to those in a table derived from a star schema, or comparing results from a table derived from an external source to a table built via ETL.\n\n## Main Features\n\n- **Class: SQLTest**\n 1. Creates and runs SQL database queries based on attributes provided with class instantiation or custom SQL query string.\n 2. Completes five built in tests based on field-type categorizations of `count`, `low_distinct`, `high_distinct`, `numeric`, `id_check`.\n 3. Flags fields above a specified difference threshold for \"priority review\".\n 4. Displays a summary of results.\n 5. Saves results and summary as specified.\n\n- **Function: compare_tables**\n 1. Auto-detects the type of test to be run.\n 2. Utilizes methods of SQLUnitTest to complete a full comparison of table values.\n\n- **Function: sql_query**\n 1. Conducts basic database queries\n\n\n## Functionality Overview\nThe concept behind the testing is that database information can often be segmented by a field, such as dates. Testing can be done by comparing field values across these groupings. For a more detailed description of the available functionality, check out the [development page](https://github.com/rebeccaebarnes/sql_analysis).\n\n### Basic Query\n\n
\n \n
\n \n
\n
\n