Public Member Functions | |
def | __init__ |
def | addRelease |
def | create |
def | deleteRelease |
def | drop |
def | listReleases |
def | read |
Public Attributes | |
conn |
Definition at line 23 of file reference_db.py.
def reference_db::ReferenceDB::__init__ | ( | self, | |
connect | |||
) |
Definition at line 24 of file reference_db.py.
def reference_db::ReferenceDB::addRelease | ( | self, | |
release, | |||
arch, | |||
path | |||
) |
Definition at line 54 of file reference_db.py.
00055 : 00056 curs = self.conn.cursor() 00057 relID = ExtractID(release) 00058 print "relID "+str(relID) 00059 sqlstr = "INSERT INTO VERSION_TABLE(ID, RELEASE, ARCH, PATH) VALUES(:rid, :rel, :arc, :pat)" 00060 curs.execute(sqlstr, rid = relID, rel = release, arc = arch, pat = path) 00061 self.conn.commit() 00062 print 'RELEASE ENTRY ADDED.'
def reference_db::ReferenceDB::create | ( | self | ) |
Definition at line 27 of file reference_db.py.
def reference_db::ReferenceDB::deleteRelease | ( | self, | |
release, | |||
arch | |||
) |
Definition at line 39 of file reference_db.py.
def reference_db::ReferenceDB::drop | ( | self | ) |
Definition at line 33 of file reference_db.py.
def reference_db::ReferenceDB::listReleases | ( | self, | |
relID | |||
) |
Definition at line 63 of file reference_db.py.
def reference_db::ReferenceDB::read | ( | self | ) |
Definition at line 46 of file reference_db.py.
Definition at line 24 of file reference_db.py.