[pygr-notify] Issue 71 in pygr: Support write operations to SQL databases

codesite-noreply at google.com codesite-noreply at google.com
Fri Feb 27 19:56:32 PST 2009


Status: FixedNeedsReview
Owner: cjlee112
CC: the.good.doctor.is.in,  marecki,  jqian.ubc
Labels: Type-Enhancement Priority-Medium Milestone-Release0.8

New issue 71 by cjlee112: Support write operations to SQL databases
http://code.google.com/p/pygr/issues/detail?id=71

sqlgraph has been extended to support write operations.  By passing the
writeable=True flag to the SQLTable() constructor (or similar class), write
operations are enabled:

db.new(**kwargs) # create a new object with attr values given by kwargs

obj.attr = val # change an attribute value of a row object

del db[rowID] # delete a row from the database

db[newID] = obj # change obj's ID, overwriting any existing row with that ID

Tests of write operations were added to sqltable_test.py

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list