Coder Social home page Coder Social logo

sqlautocode's Introduction

sqlautocode

Effort discontinued. Have switched to sqlacodegen which is cleaner, does a better job at generating model, and works using SQLAlchemy >= 0.9 and Python 3. You can view my fork of the project here.


Made some modifications to config.py and declarative.py to get object relationships to work.

Have also fixed issue 42. http://code.google.com/p/sqlautocode/issues/detail?id=42

Note that sqlautocode doesn't generate relationships for tables where overlapping composite foreign keys exist.


http://code.google.com/p/sqlautocode/

ORIGINAL README.md

AutoCode is a flexible tool to autogenerate a model from an existing database.

This is a slightly different approach to SqlSoup, that lets you use tables without explicitly defining them.

Current Maintainer:

Chris Perkins (percious)
E-mail: [email protected]

Simon Pamies (spamsch)
E-Mail: s.pamies at banality dot de

Authors:

Paul Johnson (original author)

Christophe de Vienne (cdevienne)
E-Mail: cdevienne at gmail dot com

Svilen Dobrev (sdobrev)
E-Mail: svilen_dobrev at users point sourceforge dot net

License:

MIT
see license.txt

Requirements:

sqlalchemy 0.6+

Documentation:

Call sqlautocode.py --help for a list of available self explaining options.

Example:
sqlautocode.py -o model.py -u postgres://postgres:user@password/MyDatabase -s myschema -t Person*,Download

ToDo:

+ Generate ActiveMapper / Elixir model

Notes (random):

ATT: sqlautocode currently does not handle function indexes well. It generates
code not understood by sqlalchemy.

(old) metadata stuff from:
http://sqlzoo.cn/howto/source/z.dir/tip137084/i12meta.xml

sqlautocode's People

Contributors

ksindi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.