Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use SQLFairy via DBD::JDBC? #53

Open
daveloyall opened this issue May 1, 2015 · 1 comment
Open

Is it possible to use SQLFairy via DBD::JDBC? #53

daveloyall opened this issue May 1, 2015 · 1 comment

Comments

@daveloyall
Copy link

This command line:

hobbes@metalbaby:~$ sqlt -f DBI -t GraphViz --db-user username --db-password '...' \
--dsn 'dbi:JDBC:hostname=localhost:9001;url=jdbc:sqlserver://10.0.0.5'

returns:

Error: translate: Error with parser 'SQL::Translator::Parser::DBI': JDBC not supported
at /usr/share/perl5/SQL/Translator/Parser/DBI.pm line 154.

If you're not familiar with DBD::JDBC, here is my synopsis: the thing has at least two components: a standalone java application which speaks JDBC on one side and listens for incoming connections on the other. It acts as a proxy... The perl part of DBD::JDBC talks to the little server. So, a variety of RBDMS are made available to perl's DBI via this bridge. (I guess DBI is to perl as JDBC is to Java?)

So I looked around a little and determined that I should implement SQL::Translator::Parser::DBI::JDBC. I inspected SQL::Translator::Parser::DBI::SQLServer for guidance. I quit when I saw the following in the DBD::JDBC README file.

NOT YET IMPLEMENTED
DBI-defined methods, including

 DBI->data_sources('JDBC'), $dbh->data_sources

 the metadata methods $dbh->table_info, $dbh->tables,
 $dbh->type_info_all, $dbh->type_info, $dbh->column_info,
 $dbh->primary_key_info, $dbh->primary_key,
 $dbh->foreign_key_info 

Meanwhile, I'll return to trying to use unixODBC to talk to MS SQL Server.

@ribasushi
Copy link
Contributor

@daveloyall Short answer: no idea ;) Generally talking to MSSQL via unixODBC is the best way to do it currently (especially if you can get your hands on the Microsoft linux driver).

Nevertheless I would appreciate pointers to how to properly setup a JDBC connection on linux however, so maybe this can be tried in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants