<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sapere aude! &#187; sql</title>
	<atom:link href="http://dukebody.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://dukebody.com</link>
	<description>Dare to know - Atrévete a servirte de tu propia razón</description>
	<lastBuildDate>Tue, 24 Apr 2012 18:36:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQLAlchemy &#8211; turn Relational Databases into Python Gold</title>
		<link>http://dukebody.com/2008/09/sqlalchemy-turn-relational-databases-into-python-gold/</link>
		<comments>http://dukebody.com/2008/09/sqlalchemy-turn-relational-databases-into-python-gold/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 23:44:38 +0000</pubDate>
		<dc:creator>Israel Saeta Pérez</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sqlalchemy]]></category>

		<guid isPermaLink="false">http://dukebody.com/?p=55</guid>
		<description><![CDATA[
Last week I started a project using Relational Databases for Zassh.com.
At first, I tried to construct the SQL queries myself using string joins, tuples and so but soon I realized the problems using this method:

It&#8217;s error-prone.
Highly vulnerable to SQL injection attacks.
Computers write SQL better than humans.
It made me remember my suffering PHP days.

So I decided [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dukebody.com/wp-content/uploads/2008/09/sqla-logo6.gif"><img class="alignright alignnone size-medium wp-image-56" style="float: right;" title="sqla-logo6" src="http://dukebody.com/wp-content/uploads/2008/09/sqla-logo6.gif" alt="" width="188" height="52" /></a></p>
<p>Last week I started a project using Relational Databases for <a href="http://www.zassh.com">Zassh.com</a>.</p>
<p>At first, I tried to construct the SQL queries myself using string joins, tuples and so but soon I realized the problems using this method:</p>
<ul>
<li>It&#8217;s error-prone.</li>
<li>Highly vulnerable to SQL injection attacks.</li>
<li>Computers write SQL better than humans.</li>
<li>It made me remember my suffering PHP days.</li>
</ul>
<p>So I decided to try a library I heard a lot of good things about. <a href="http://www.sqlalchemy.org/">SQLAlchemy</a> is a pythonic high-performance SQL toolkit and Object Relational Mapper (ORM).</p>
<p>The result couldn&#8217;t be better. Instead of fighting against query-strings and tuples, it lets you write SQL magic directly in Python. I discovered I can do calculations using SQL queries I&#8217;ve never have thought before, like counting the number of goals a team has scored through two simultaneous joins and a bunch of filters.</p>
<p>If you have to work with Python and SQL, I definitely recommend you to use SQLAlchemy and forget about old error-prone methods. I&#8217;m sure you won&#8217;t be disappointed.</p>
]]></content:encoded>
			<wfw:commentRss>http://dukebody.com/2008/09/sqlalchemy-turn-relational-databases-into-python-gold/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

