ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject incubator-ignite git commit: IGNITE-843: WIP load metadata from db.
Date Thu, 20 Aug 2015 06:13:09 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 76d999b3d -> 903e23467


IGNITE-843: WIP load metadata from db.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/903e2346
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/903e2346
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/903e2346

Branch: refs/heads/ignite-843
Commit: 903e2346777a7a6b5cf85ec0d9ff286095623662
Parents: 76d999b
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Thu Aug 20 13:13:25 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Thu Aug 20 13:13:25 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/metadata-controller.js        | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/903e2346/modules/control-center-web/src/main/js/controllers/metadata-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/metadata-controller.js b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
index 42d115e..5eab839 100644
--- a/modules/control-center-web/src/main/js/controllers/metadata-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
@@ -309,6 +309,11 @@ controlCenterModule.controller('metadataController', [
                             return {name: toJavaName(name), className: jdbcType.javaType}
                         }
 
+                        function dbField(name, jdbcType) {
+                            return {databaseName: name, databaseType: jdbcType.dbName,
+                                javaName: toJavaName(name), javaType: jdbcType.javaType}
+                        }
+
                         _.forEach(table.cols, function(col) {
                             var name = col.name;
                             var jdbcType = $common.findJdbcType(col.type);
@@ -320,6 +325,11 @@ controlCenterModule.controller('metadataController', [
 
                             if (_.includes(table.descCols, name))
                                 descFields.push(queryField(name, jdbcType));
+
+                            if (col.key)
+                                keyFields.push(dbField(name, jdbcType));
+
+                            valFields.push(dbField(name, jdbcType));
                         });
 
                         var newItem = {


Mime
View raw message