[Groonga-commit] groonga/groonga-admin at 5427079 [master] Create "_key" virtual column

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 23 12:27:59 JST 2016


YUKI Hiroshi	2016-09-23 12:27:59 +0900 (Fri, 23 Sep 2016)

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

  Merged 2dd9aa7: Merge pull request #11 from groonga/features/migrate-column_list-to-schema

  Message:
    Create "_key" virtual column

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

  Modified: app/scripts/services/schema-loader.js (+14 -0)
===================================================================
--- app/scripts/services/schema-loader.js    2016-09-23 12:27:37 +0900 (e3a82c1)
+++ app/scripts/services/schema-loader.js    2016-09-23 12:27:59 +0900 (c8a55d1)
@@ -239,6 +239,20 @@ angular.module('groongaAdminApp')
           source: null
         };
 
+        if (rawTable.type != 'array') {
+          columns._key = {
+            name:    '_key',
+            id:      rawTable.id || 0,
+            path:    '',
+            type:    'fix',
+            flags:   ['COLUMN_SCALAR'],
+            domain:  rawTable.name,
+            range:   rawTable.key_type.name,
+            source:  null,
+            indexes: []
+          };
+        }
+
         angular.forEach(rawTable.columns, function(rawColumn, name) {
           columns[name] = buildColumn(rawTable, rawColumn);
         });
-------------- next part --------------
HTML����������������������������...
Download 



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