Skip to content
database schema and documents hub
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps
configs
dbhub
scripts
templates
tests
.gitignore
.travis.yml
LICENSE
README.md
manage.py
requirements.txt
runtests.sh
screenshoot.png
test-requirements.txt

README.md

dbhub

Build Status

demo

This project has the following basic apps:

  • schema (manage table schema like wiki but automatically)

Installation

To set up a development environment quickly, install Python 2.x first. It comes with virtualenv built-in. so create a virtual environment with:

mkvirtualenv dbhub

Install dependencies:

pip install -r requirements.txt

Run server

python manage.py runserver --settings=dbhub.settings.dev

Add database

  • name: database name
  • config: whole url for connect with database
  • for MySQL: mysql://{username}:{password}@{database-url}:3306/{database-name}?charset=utf8
  • for SQLite: sqlite:////{absolute-path-to-db-file}

Sync databases' schema and check columns' enumeration

python manage.py runscript sync

python manage.py runscript check

How to write comments with enumeration

  1. write description first;
  2. write enumerations below with {enum}: {description}.
charset with description, blah, blah, blah

utf8: A UTF-8 encoding of the Unicode character set using one to three bytes per character. default utf8 of mysql, max length is 3 bytes, not support characters, such as emoji.

utf8mb4: A UTF-8 encoding of the Unicode character set using one to four bytes per character.

Supported dialects

  • Firebird
  • Microsoft SQL Server
  • MySQL
  • Oracle
  • PostgreSQL
  • SQLite
  • Sybase
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.