Useful DB Layer Package for MySQL,PSQL & Oracle.
Project description
#create a student
import greenapple
gco=greenapple.model.ConnectOperations()
gco.con.dbengine="MySQL"
gco.con.database="eshule"
gco.con.username="root"
gco.con.password="root"
student={"first_name":"'Alexandria'","last_name":"'Nandyose'","table":"student","clause":"where id = 4"}
student["last_name"]="'Marvin Stevens'"
gco.insert(student)
dataset=gco.select_dataset({"table":"student","clause":"where id=8"})
for record in dataset:
print record
import greenapple
gco=greenapple.model.ConnectOperations()
gco.con.dbengine="MySQL"
gco.con.database="eshule"
gco.con.username="root"
gco.con.password="root"
student={"first_name":"'Alexandria'","last_name":"'Nandyose'","table":"student","clause":"where id = 4"}
student["last_name"]="'Marvin Stevens'"
gco.insert(student)
dataset=gco.select_dataset({"table":"student","clause":"where id=8"})
for record in dataset:
print record
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greenapple-0.1.1.tar.gz
(3.0 kB
view hashes)