[Groonga-commit] groonga/groonga-admin at e5ad3a6 [build-schema-from-schema-result] Reuse raw tables

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Fri Sep 23 13:01:50 JST 2016


YUKI Hiroshi	2016-09-23 13:01:50 +0900 (Fri, 23 Sep 2016)

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

  Message:
    Reuse raw tables

  Modified files:
    app/scripts/services/schema-loader.js

  Modified: app/scripts/services/schema-loader.js (+5 -4)
===================================================================
--- app/scripts/services/schema-loader.js    2016-09-23 12:58:43 +0900 (48aa51c)
+++ app/scripts/services/schema-loader.js    2016-09-23 13:01:50 +0900 (3c075b5)
@@ -131,8 +131,7 @@ angular.module('groongaAdminApp')
         return table;
       }
 
-      function buildTables(response) {
-        var rawTables = response.tables();
+      function buildTables(rawTables) {
         var tables = {};
         angular.forEach(rawTables, function(table, name) {
           tables[name] = buildTable(table);
@@ -250,10 +249,12 @@ angular.module('groongaAdminApp')
         schema.tables = {};
         return client.execute('schema')
           .success(function(response) {
-            schema.tables = buildTables(response);
+            var rawTables = response.tables();
+
+            schema.tables = buildTables(rawTables);
 
             angular.forEach(schema.tables, function(table) {
-              table.columns = buildColumns(response.tables()[table.name]);
+              table.columns = buildColumns(rawTables[table.name]);
             });
 
             resolveIndexes(schema);
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る