Skip to main content

SCUP as in SQL Covertor Utility Program

Project description

Note: This utility is currently more suitable to be used in a notebook settings, as it will prompt user for input. A Version more fir to be used in programming will soon be released.

I was recently doing an online training, the instructor was showing examples on MySQL database. I however preferred running those exampkes on my test database i.e. MS SQL Server on Azure Cloud.

After a few classes i realized that MYSQL has host of simple to understand SQL queries, where as its SQL server equivalent was big chunky queries. (I am talking about system SQL query which you run against the metdata such as SHOW TABLES, SHOW DATABASE etc)

with this idea i have created this utility to provide syntax to some imp queries, which we are required to run every now and then.

run [print(scup.sqlserver('list'))] to see a complete list queries, this utility support.

version = "0.3.0" --> Changed scup.py function ms2ssf() name to sqlserver(). added many other sqls. version = "0.2.3" --> Package Name changed from MSS to SCUP as pypi showed conflict. (SCUP as in SQL Covertor Utility Program)

version = "0.2.2" --> List command added and reponse to no query match added

version = "0.2.0" --> 3 Show commands working

version = "0.2.1" --> Patch - test scripts was commented out


COMMANDS HELP ()

    1. SHOW DATABASES (conn.execute(scup.sqlserver('SHOW DATABASES')).fetchall())
    2. SHOW TABLES : will prompt for Schema name
    3. SHOW TABLES FROM database_name : will prompt for Database name
    4. SHOW CHECK_CONSTRAINTS FROM TABLE : will prompt for Table Name (uses LIKE)
    5. DESCRIBE TABLE  : will prompt for Database name
    6. SHOW INDEX FROM TABLE  : will prompt for Schema and Table name
    7. DATABASE STATUS  : will prompt for Database name 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scup-0.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

scup-0.3.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file scup-0.3.0.tar.gz.

File metadata

  • Download URL: scup-0.3.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Windows/10

File hashes

Hashes for scup-0.3.0.tar.gz
Algorithm Hash digest
SHA256 76d18bf77123bf945e442e70851f397ad7faa6401b60a383d0df4b98ef989bc1
MD5 2e0cc760924e08a826b6caf9bf243faa
BLAKE2b-256 69f64e58cacc382e5b0c83d5cd58f9db4966e1a068661f626558d5d3a122f76b

See more details on using hashes here.

File details

Details for the file scup-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: scup-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Windows/10

File hashes

Hashes for scup-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf73a2de025adcbeef0fa019d6d27d2c78a9bea8d69d43b9ac28b73b15f47349
MD5 4d4ef1544e9e4a93d1d053c54b4e87a0
BLAKE2b-256 c9cac7ac0ea9405d19d25589d89838cc08d1118a1fb724a8a5be67c9578921c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page