Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#90 closed enhancement (fixed)

Add " inspectdb" option

Reported by: adrian Owned by: adrian
Component: Tools Version:
Severity: normal Keywords:
Cc: miernik@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by adrian) inspectdb would take an argument -- the database name -- and would introspect the existing database-table structures and print a Django model to standard output.

Change History (7)

comment:1 Changed 11 years ago by adrian

  • Description modified (diff)

comment:2 Changed 11 years ago by adrian

  • milestone set to Version 1.0

comment:3 Changed 11 years ago by adrian

  • Status changed from new to assigned

comment:4 Changed 11 years ago by adrian

(In [384]) Added first stab at ' inspectdb', which takes a database name and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90.

comment:5 Changed 11 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

As of [398], I'm closing this, because it's good enough at this point to be used in common cases. I'll be filing lower-priority tickets for individual features we need to add to inspectdb, but for version 1.0, this will suffice.

comment:6 Changed 11 years ago by anonymous

  • Cc miernik@… added

comment:7 Changed 10 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top