Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Using Databases in Python Meet Peewee Meet Peewee, Our ORM

Should i take database foundations before continue?

Hi :) i don't know anything about databases. Do you think should i take course about the database foundations from Andrew Chalkley?

2 Answers

Hi Ozan

ORM's or Object Relational Mapping acts like a layer between your code and the database, each table in the database is represented by a class in your code. If you were not using an ORM and you wanted to insert data into a table called 'test' you would do something like so 'INSERT INTO test (column1,Cloumn2) Values('value1','value2'). With an ORM you would call a method called create on the class passing in the values 1 and 2, but the code in the background is doing preety much the same thing. I know this because i have taken the database foundations with andrew and have prior knowledge of using databases. So long story short i would recommend taking the database foundations course even do you could proceed without doing so.

Thank you very much :)

Greg Kitchin
Greg Kitchin
31,522 Points

I've just started this section in Python. How far into the SQL course should someone go into before continuing with the Python one?