<?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>wide thoughts &#187; PDO</title>
	<atom:link href="http://kozak.si/widethoughts/tag/pdo/feed/" rel="self" type="application/rss+xml" />
	<link>http://kozak.si/widethoughts</link>
	<description>a blog of one of those ... software developer creatures</description>
	<lastBuildDate>Sat, 31 Jul 2010 12:30:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pushing PDO</title>
		<link>http://kozak.si/widethoughts/2009/10/25/pushing-pdo/</link>
		<comments>http://kozak.si/widethoughts/2009/10/25/pushing-pdo/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 19:59:39 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=541</guid>
		<description><![CDATA[I&#8217;m really glad to see Lukas planning to push PDO a step higher. I think it&#8217;s already a decent extension, and has a bright future &#8212; since I first used the extension I&#8217;ve never ever used anything else for any database. It&#8217;s object-oriented, has a lean interface, it&#8217;s fast, and supports a major feature: prepared [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really glad to see <a href="http://pooteeweet.org/blog/1565/p/1">Lukas planning to push PDO a step higher</a>. I think it&#8217;s already a decent extension, and has a bright future &#8212; since I first used the extension I&#8217;ve never ever used anything else for any database. It&#8217;s object-oriented, has a lean interface, it&#8217;s fast, and supports a major feature: prepared statements. I&#8217;ve completely forgotten about having to escape, because I always insert/update through these. Seeing mysql_real_escape_string() anywhere in code makes me sad, and seeing $db = mysql_connect() and then passing the resource around makes me sick <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Yes, you can use a class to wrap this up, but why would you? PDO is just that and more.</p>
<p>The only thing I miss is some sort of prepared statement inspection. You prepare it, and you pass the parameters, but you can&#8217;t find out what the query actually looks like. This would come in handy for logging, but it may be impossible to implement in the extension, because as I understand prepared statements are assembled by the database itself, unless they&#8217;re emulated by the extension.</p>
]]></content:encoded>
			<wfw:commentRss>http://kozak.si/widethoughts/2009/10/25/pushing-pdo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
