<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>example.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -0,0 +1,54 @@
+Today I was thinking aloud about [Tree Regular Expressions](http://research.microsoft.com/Users/luca/Slides/2003-11-13%20Transitions%20in%20Programming%20Models%20\(Lisbon\).pdf) and how they might make a nice query language for document databases like CouchDB. Someone pointed out that CSS3 selectors might make a great concrete syntax for this. One thing lead to another and I thought, why not build a relational database in HTML? So I did. I even got **inner joins** working.
+
+Let's start with a few tables:
+
+    &lt;table class=&quot;users&quot;&gt;
+      &lt;tr&gt;
+        &lt;td class=&quot;id&quot;&gt;1&lt;/td&gt;
+        &lt;td class=&quot;first_name&quot;&gt;amy&lt;/td&gt;
+        &lt;td class=&quot;last_name&quot;&gt;bobamy&lt;/td&gt;
+      &lt;/tr&gt; 
+      ...
+    &lt;/table&gt;
+    &lt;table class=&quot;photos&quot;&gt;
+      &lt;tr&gt;
+        &lt;td class=&quot;id&quot;&gt;1&lt;/td&gt;
+        &lt;td class=&quot;user_id&quot;&gt;1&lt;/td&gt;
+        &lt;td class=&quot;url&quot;&gt;http://www.example.com/foo.png&lt;/td&gt;
+      &lt;/tr&gt; 
+    &lt;/table&gt;
+
+Now we can express some queries:
+
+    $('.users')
+      .where('.id:eq(1)')
+      .select('*')
+
+This is equivalent to `SELECT * FROM users WHERE id = 1`
+
+    $('.users')
+      .where('.id:eq(1)')
+      .select('.id, .name')
+
+This is equivalent to `SELECT id, name FROM users WHERE id = 1`. Here is something slightly more complicated:
+
+    $('.users')
+      .where('.name:contains(a)')
+        .and('.name:contains(c)')
+      .select('*')
+
+But here is **the crowning glory**, the inner join:
+
+    $('.users')
+      .join('.photos')
+      .where('.photos.user_id:eq(.users.id)')
+        .and('.users.id:eq(1)')
+      .select('.photos.url')
+
+This is equivalent to:
+
+    SELECT photos.url FROM users, photos
+    WHERE photos.user_id = users.id
+      AND users.id = 1
+      
+[Download the fun](http://github.com/nkallen/jquery-database/tree/master) at Github.
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4e30c5e560cff3c5309169856cb6c699d3fd124e</id>
    </parent>
  </parents>
  <author>
    <name>Nick Kallen</name>
    <email>nkallen@nick-kallens-computer-2.local</email>
  </author>
  <url>http://github.com/nkallen/jquery-database/commit/96ed31fe17663d385749aaa5394977e3093879e8</url>
  <id>96ed31fe17663d385749aaa5394977e3093879e8</id>
  <committed-date>2008-04-08T01:02:34-07:00</committed-date>
  <authored-date>2008-04-08T01:02:34-07:00</authored-date>
  <message>documentation</message>
  <tree>4f18a49cfe782873f62d32e1f70fa9c91c2f8d3a</tree>
  <committer>
    <name>Nick Kallen</name>
    <email>nkallen@nick-kallens-computer-2.local</email>
  </committer>
</commit>
