| Presenter: | Catherine Devlin |
|---|---|
| Date: | Sep 10, 2011 |
| Location: | Ohio LinuxFest 2011 |
This talk does not represent official Dell positions. But Dell is cool anyway.
SELECT name FROM department;
SELECT s.name,
d.name
FROM school s
JOIN department d
ON (s.code =
d.school_code);
REpresentational State Transfer
http://www.flickr.com/photos/lottadot/
sudo apt-get install python-setuptools
sudo easy_install htsql
htsql-ctl serve postgres://username:password@host/db
SELECT d.*,
s.name
FROM department d
JOIN school s
ON s.code = d.school_code;
/course{title, department.name, department.school.name}
/course{title, department.name :as 'department', department.school.name :as 'school'}
/course{title, credits, department.name}
/department{name, course.title, course.credits} (No!)
Add whitespace, it rocks:
http://demo.htsql.org/school
{name, count(program),
count(department.course),
count(department)}
?name~'art'
/school?exists(program)
{name,avg(department.count(course?credits>3))
}/:txt
from htsql import HTSQL
from htsql.request import produce
htsql_inst = HTSQL('postgres://cat:cat@localhost/uni')
with htsql_inst:
for row in produce('/school'):
print row
Written by Kirill Simonov and Clark Evans (Prometheus Research)
Generous support for HTSQL was provided by Prometheus Research, LLC and The Simons Foundation. This material is also based upon work supported by the National Science Foundation under Grant #0944460.