Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 738591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:51:14+00:00 2026-05-14T07:51:14+00:00

Given a [mysql] database with a given schema, is it possible to generate an

  • 0

Given a [mysql] database with a given schema, is it possible to generate an ORM interface for it? doesn’t matter if its php, python or perl.

in other words, I have a database and I have to ask it a few questions. while I could just craft a bunch of SQL queries (okay, several dozen), this is way more interesting to think about.

is this a valid question, even? I have no design background with ORMs, but I’ve used a few (django’s, symfony’s, etc).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:51:14+00:00Added an answer on May 14, 2026 at 7:51 am

    Django’s ORM will do this for you (or at least it will get the process started for you).

    Just set up a django app as you normally would (including DB connection settings), then do this:

    $ python manage.py inspectdb > models.py
    

    I did this once to help me make sense of a legacy (php) website database that I was tasked with maintaining. It was a little work, but ultimately I was able to use the django admin site to manage it (the project was shelved, but that’s another story).

    See: http://docs.djangoproject.com/en/dev/howto/legacy-databases/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query to filter the result in mysql database into given letter
I have an application at Location A (LA-MySQL) that uses a MySQL database; And
I am trying to connect to a local MySQL database from a VB6 application.
I need to find all records created in a given year from a MySQL
I'm new to mysql and have a choice regarding mysql database structure for my
I'm storing some latitudes and longitudes in a MySQL database using Rails 3.0.3. Here
I'm working on a project where there will be a MySQL database containing data
I have an app that I'm porting from PHP/symfony to Ruby/Rails. Though the language
I have several databases in MySQL with InnoDB engine. All together they have around
I want to implement a ranking system on a website I've been working on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.