Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewirts committed Feb 10, 2015
1 parent 32add91 commit 0761850
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ Hypergrid utilizes a custom scrollbar component so as to not be limited to table

<img src="images/gridshot03.png" alt="screenshot">

##Hypergrid example for displaying RDBMS data

<img src="../gridshot05.png" alt="screenshot">

this is an example usage of the hypergrid control looking at the +1MM row postrgres db example from the [greenplum getting started tutorial](http://gpdb.docs.pivotal.io/gs/42/pdf/GP-Getting-Started.pdf). For this example to work you'll need to

* install the [greenplum tutorial db](http://gpdb.docs.pivotal.io/gs/42/pdf/GP-Getting-Started.pdf
* npm install [any-db-postgress](https://github.com/grncdr/node-any-db) and websocket.io
* run the node [script](https://github.com/openfin/fin-hypergrid/blob/master/rdbms/rdbms-example.js) found in the [rdbms](https://github.com/openfin/fin-hypergrid/blob/master/rdbms) directory
* navigate to the q behavior [example](http://openfin.github.io/fin-hypergrid/components/fin-hypergrid/demo.html) and press "reconnect"

feel free to connect this example to any other db that any-db supports (MS SQL, MySQL, Postgres, and SQLite3).
Make sure to npm install the proper any-db-***** interface and edit the config.js file.



## Road Map
1. Test suite for all components and upstream dependency projects
2. Continued bug-fixing, refactoring, documentation and cleanup of the existing code base
Expand Down
14 changes: 14 additions & 0 deletions rdbms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Hypergrid example for displaying RDBMS data

<img src="../images/gridshot05.png" alt="screenshot">

this is an example usage of the hypergrid control looking at the +1MM row postrgres db example from the [greenplum getting started tutorial](http://gpdb.docs.pivotal.io/gs/42/pdf/GP-Getting-Started.pdf). For this example to work you'll need to

* install the [greenplum tutorial db](http://gpdb.docs.pivotal.io/gs/42/pdf/GP-Getting-Started.pdf
* npm install [any-db-postgress](https://github.com/grncdr/node-any-db) and websocket.io
* run the node script found in this directory
* navigate to the q behavior [example](http://openfin.github.io/fin-hypergrid/components/fin-hypergrid/demo.html) and press "reconnect"

feel free to connect this example to any other db that any-db supports (MS SQL, MySQL, Postgres, and SQLite3).
Make sure to npm install the proper any-db-***** interface and edit the config.js file.

4 changes: 2 additions & 2 deletions rdbms/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
db_url: 'postgres://stevewirts:saxophone@localhost/tutorial',
db_url: 'postgres://login:password@localhost/tutorial',
table: 'faa.otp_r',
websocketPort: 5000
};
};

0 comments on commit 0761850

Please sign in to comment.