Permalink
Browse files

rowけした

  • Loading branch information...
1 parent 94b3ad8 commit 20d967ade26534e47d4f93a32bc0d998781c6890 @kentaro committed Apr 13, 2011
Showing with 1 addition and 19 deletions.
  1. +1 −1 eg/test.js
  2. +0 −18 lib/poyo_row.js
View
@@ -6,7 +6,7 @@ var database = poyo_database.new("localhost", "root", "", "test");
database.connect();
var table = poyo_table.new(database, "test_table");
-result = table.execute("select * from ?;", ["test_table"]);
+result = table.execute("select * from ?;", []);
rows = result.fetchAllSync();
sys.puts("Tables in database '" + database + "':");
View
@@ -1,18 +0,0 @@
-if (typeof Poyo == 'undefined') Poyo = {};
-
-Poyo.Row = function () {};
-
-
-Poyo.Table.prototype.execute = function (sql, binds) {
- binds.unshift(this.table);
- var result = this.database.execute(sql, binds);
- return new global[this.row_class](result);
-};
-
-Poyo.Table.prototype.puts_table = function () {
- sys.puts(this.table);
-}
-
-exports.new = function () {
- return new Poyo.Table();
-}

0 comments on commit 20d967a

Please sign in to comment.