Code Monkey home page Code Monkey logo

pyddt's Introduction

pyddt

数据库表结构说明文档生成器。 根据登录用户,查询所有表。用户可以选择所需表导出

注意 Attention

UI 比较丑(不擅长tkinter窗体布局)

自带目录

保存格式为xls

目前仅支持Oracle

前提条件 Prerequisite

  • Oracle Instant Client or Oracle client 安装并配置

  • Python 3.x

    pip install cx_Oracle
    pip install pandas
    pip install tkinter
    pip install xlrd
    pip install xlutils
    pip install logging

使用方法 Usage

  • 程序入口 entry.py

    python entry.py # src/gui/entry.py
    

操作指引

主界面

代码位置

1550831576190

布局

1.数据库链接下拉框支持输入或者选择已有的数据库链接。

2.数据库链接字符串的格式为“user/pass@db”.

  • db 是配置在tnsnames.ora 文件中。
  • tnsname文件的典型配置如下:
```
db = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = orcl)))
```
  1. 测试 按钮就是测试数据库是否可以成功连接。
  2. 下一步按钮,点击后转入工作台
  3. 输入的数据库链接在成功连接到数据库之后,会自动保存在配置文件中,下次打开主窗口时,会被自动加载到下拉框列表中以供选择。如果不想保留,请使用后删除options.ini文件

工作台

代码位置

1550832696184

窗体布局

从左上角到右下角,一次是:

1.数据库对象浏览树

2.分割符(可拖动)

3.按钮操作区:

  • ->数据库对象浏览树中选中的表添加至待导出列表
  • <-清除待导出列表中选中的
  • ->>数据库对象浏览树中所有表添加到待导出列表
  • <<-清空待导出列表

4.待导出列表

5.生成文档按钮

文档默认保存在exports路径下.

配置文件

参考《options-sample.ini》

其实根本不需要配置!配置文件会自动创建并保存成功连接的数据库信息。如果不想保存此信息,请用完后删除options.ini

数据库文档保存位置

默认保存在src/exports/下面,如果路径不存在,会自动创建

Bug report & feature request

Receiver: [email protected] Subject: pyddt bug | pyddt feature request.

pyddt's People

Contributors

chiucscs avatar smoothwind avatar

Watchers

James Cloos avatar  avatar 邹双平 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.