Skip to main content

Convert table schema between MySQL, Hive, and string formats

Project description

TableSQLConverter V1.2

TableSQLConverter是为了方便将数据库表的基本元信息 以表格形式如excel的批量转换成Mysql建表或HiveSQL的建表语句。也能够根据SQL的 创表语句,提取出基本字段信息形成表格,或者SQL创表语句向Hive创表语句的转换。

图1 TableSQlConverter V1架构图

pip install tablesqlconverter
from tablesqlconverter import Converter
myCvt=Converter()

schema 结构

{"<tbname>":[{"colname":"","type":"","comment":""},]}

示例

tbl数据间隔符号是”\t“,换行符号是"\n"

案例见test.py

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

tablesqlconverter-1.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tablesqlconverter-1.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file tablesqlconverter-1.2.0.tar.gz.

File metadata

  • Download URL: tablesqlconverter-1.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for tablesqlconverter-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c83e4f8d6eeeeb6b6f9044cf9f963a74168031565ca921cd3d5cc9bc92ee0f47
MD5 bd3c58e02f940debe2115c7d803ab2da
BLAKE2b-256 ab9d1c252dae751f59decf98e8a4d2f93852dd063dcf1b46f1deb949add3bf7b

See more details on using hashes here.

File details

Details for the file tablesqlconverter-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tablesqlconverter-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 befd6b39fcf862cf62e0ceaaac6f4cc30f892990a31220fcbb0526307fcef15e
MD5 31f1ffcf43d69091e3520ffe757bceed
BLAKE2b-256 a7c6b61917c88551d36961394a5e1819d6b15fb7d23a7811df43c9ab9513c45c

See more details on using hashes here.

Supported by

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