Postgres Datasource

37 views
Skip to first unread message

Dids

unread,
Nov 5, 2009, 10:09:51 AM11/5/09
to Google Visualization API
I'm trying to get the sample SqlDataSourceServlet to work against a
postgres database.

Not getting much success and reading around, I arrived on this page :
http://code.google.com/apis/visualization/documentation/dev/dsl_javadocs/com/google/visualization/datasource/util/SqlDataSourceHelper.html

In it it says : "A utility class, with static methods that are
specific for creating a data source based on a SQL database table. For
now, it can be based on mysql database only. "

It's the "For now, it can be based on mysql database only." part that
caught my eyes.

Does that really mean it's not working for postgres ?

So I can't get a ready-made datasource with the query-language support
for a postgres database, Any idea what I'd need to do in order to
create one ?

Regards,
Dids,

Bug Chart

unread,
Nov 5, 2009, 10:27:09 AM11/5/09
to google-visua...@googlegroups.com
Hi,

this is indeed the case right now.
You can try playing around with the open source code,
and change the JDBC driver to postgre,
and maybe it could work for you.

HTH

BugChart

Dids

unread,
Nov 5, 2009, 10:32:06 AM11/5/09
to Google Visualization API
Thanks for the quick response :)

Not being familiar with Java, I think I'll revert back to the python
datasource and do the aggregation/sorting by hand ...
Reply all
Reply to author
Forward
0 new messages