Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.
/ tor_db Public archive

A test database manager customized for ToR -- a standalone version of the Django ORM + our models!

Notifications You must be signed in to change notification settings

GrafeasGroup/tor_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tor_db

because sometimes we need an exercise in what is probably a bad idea

This package is effectively the Django ORM without Django. It seems like we need an ORM for ToR, as caroline can't support foreign keys, and Django provides a super easy-to-use and fast-to-develop-in ORM.

While most projects use the Django ORM in... well, Django projects, just using the ORM is not unheard of. In fact, there are lots of suggestions from the Django crew on exactly how to pull this off in the appropriate ways, and their suggestions have been implemented here.

Usage:

from tor_db.models import Volunteer

Volunteer.objects.create(
    username='samwisegamgee'
)

print(Volunteer.objects.filter(username='samwisegamgee'))
# 

About

A test database manager customized for ToR -- a standalone version of the Django ORM + our models!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages