Coder Social home page Coder Social logo

schema_export's Introduction

#schema_export

简介:

schema_export是一个导出数据库结构的工具,支持多种格式

支持格式

  • xls
  • docx
  • pdf
  • html
  • csv

支持数据库

  • mysql

使用:

安装python2.7

https://www.python.org/ftp/python/2.7.11/python-2.7.11.msi

#配置环境变量
C:\Python27
C:\Python27\Scripts
#加入Path

###安装pip

##下载pip安装脚本
https://bootstrap.pypa.io/get-pip.py
## 用python执行
python get-pip.py

安装依赖库

pip install -r requirements.txt
#windows 安装mysql驱动
https://pypi.python.org/pypi/MySQL-python/1.2.5

运行

python export.py
#或者用sublime运行

内容说明

├── configs
│   ├── config.conf #配置文件
│   └──  logging.yaml
├── db #获取数据
├── export #导出类
├── formats #导出格式
├── logs   #日志目录
├── templates   #模板
├── output   #输出目录
├── export.py    #文件入口
├── requirements.txt    #依赖
├── README.md     #说明文件

配置说明

  • configs/config.conf日志级别在调试完成后设置为INFO级别,减少调试输出

任务表

  • mysql
  • xls
  • docx
  • pdf
  • html
  • csv
  • 字段注释
  • 配置化
  • log
  • outputdir
  • pdf中文乱码
  • word None
  • 选择数据库导出
  • 表注释
  • Wrap text in a table reportlab

schema_export's People

Contributors

wujiyu115 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.