<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -346,7 +346,10 @@ class Squerl::Database {
 
     method create_table($_: *@args) {
         my $table-name = @args[0];
-        my $columns = join ', ', gather for @args[1..^*] -&gt; $type, $name {
+        my $columns = join ', ', gather for @args[1..^*] {
+            die &quot;Expected a Pair, got a {.WHAT}&quot;
+                unless $_ ~~ Pair;
+            my ($name, $type) = .key, .value;
             given $type.lc {
                 when 'primary_key'   { take &quot;$name INTEGER PRIMARY KEY ASC&quot; }
                 when 'int'|'integer' { take &quot;$name INTEGER&quot; }</diff>
      <filename>lib/Squerl.pm</filename>
    </modified>
    <modified>
      <diff>@@ -6,11 +6,11 @@ use Squerl;
 unlink (my $file = 't/squerl/posts.db');
 my $DB = Squerl.sqlite($file);
 
-$DB.create_table: &lt;posts
-    primary_key id
-    Int         user_id
-    String      name
-&gt;;
+$DB.create_table: 'posts',
+    'id'      =&gt; 'primary_key',
+    'user_id' =&gt; 'Int',
+    'name'    =&gt; 'String',
+;
 
 #my $posts = $DB&lt;posts&gt;;
 my $posts = $DB.from('posts');</diff>
      <filename>t/squerl/01-sqlite-write.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a22061c6a34e5c6dd993d6335929cdbd7c123d3d</id>
    </parent>
  </parents>
  <author>
    <name>Carl Masak</name>
    <email>cmasak@gmail.com</email>
  </author>
  <url>http://github.com/masak/web/commit/756685b866116a3064aa83553d3af83dbe487a7a</url>
  <id>756685b866116a3064aa83553d3af83dbe487a7a</id>
  <committed-date>2009-09-28T04:51:58-07:00</committed-date>
  <authored-date>2009-09-28T04:51:58-07:00</authored-date>
  <message>[Squerl] changed the Database.create_table API

Matt-W++ for the feedback.</message>
  <tree>c3996701708b9f8e0920d5df5a625cc7dd4dc54d</tree>
  <committer>
    <name>Carl Masak</name>
    <email>cmasak@gmail.com</email>
  </committer>
</commit>
