Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 482 Bytes

README.mkd

File metadata and controls

30 lines (20 loc) · 482 Bytes

maroon

A simplified object relational model written in Python.

contrived example

from maroon import Model, IntField, connect

#connect to the database
connect(db_name='example_db')

#make a model
class SimpleModel(Model):
	someint = IntField('someint')

# create an object
s_m = SimpleModel()
s_m.someint = 23
s_m.save()

# retrieval
si = SimpleModel.someint
results = SimpleModel.find(si > 19)
print si.someint

That's it for now.