Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#90 closed enhancement (fixed)

Add " inspectdb" option

Reported by: Adrian Holovaty Owned by: Adrian Holovaty
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: no UI/UX: no

Description (last modified by Adrian Holovaty) 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 15 years ago by Adrian Holovaty

Description: modified (diff)

comment:2 Changed 15 years ago by Adrian Holovaty

milestone: Version 1.0

comment:3 Changed 15 years ago by Adrian Holovaty

Status: newassigned

comment:4 Changed 15 years ago by Adrian Holovaty

(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 15 years ago by Adrian Holovaty

Resolution: fixed
Status: assignedclosed

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 14 years ago by anonymous

Cc: miernik@… added

comment:7 Changed 13 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

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