[Groonga-commit] groonga/groonga-admin at 13f6a68 [master] groonga-client: support table_create

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Dec 31 23:18:00 JST 2014


Kouhei Sutou	2014-12-31 23:18:00 +0900 (Wed, 31 Dec 2014)

  New Revision: 13f6a68f4109adaaae016d3de5d998859b0d703d
  https://github.com/groonga/groonga-admin/commit/13f6a68f4109adaaae016d3de5d998859b0d703d

  Message:
    groonga-client: support table_create

  Added files:
    app/scripts/groonga-client/response/table-create.js
  Modified files:
    app/index.html

  Modified: app/index.html (+1 -0)
===================================================================
--- app/index.html    2014-12-31 23:17:41 +0900 (36b549c)
+++ app/index.html    2014-12-31 23:18:00 +0900 (2e1f2ae)
@@ -79,6 +79,7 @@
         <script src="scripts/groonga-client/response/base.js"></script>
         <script src="scripts/groonga-client/response/select.js"></script>
         <script src="scripts/groonga-client/response/table-list.js"></script>
+        <script src="scripts/groonga-client/response/table-create.js"></script>
         <script src="scripts/groonga-client/response/column-list.js"></script>
         <script src="scripts/app.js"></script>
         <script src="scripts/services/schema-loader.js"></script>

  Added: app/scripts/groonga-client/response/table-create.js (+24 -0) 100644
===================================================================
--- /dev/null
+++ app/scripts/groonga-client/response/table-create.js    2014-12-31 23:18:00 +0900 (111cbe9)
@@ -0,0 +1,24 @@
+'use strict';
+
+(function() {
+  function TableCreate(rawData) {
+    GroongaClient.Response.Base.call(this, rawData);
+  }
+  GroongaClient.Response.TableCreate = TableCreate;
+
+  TableCreate.prototype = Object.create(GroongaClient.Response.Base.prototype);
+  TableCreate.prototype.constructor = TableCreate;
+
+  TableCreate.prototype.parameters = function() {
+    return this.body()[0].map(function(parameter) {
+      return {
+        name: parameter[0],
+        type: parameter[1]
+      };
+    });
+  };
+
+  TableCreate.prototype.isCreated = function() {
+    return this.isSuccess() && this.body() == 1;
+  };
+})();
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index