jruby / activerecord-jdbc-adapter

JRuby's ActiveRecord adapter using JDBC.
BSD 2-Clause "Simplified" License
462 stars 388 forks source link

Support Snappydata #744

Open fire opened 8 years ago

fire commented 8 years ago

https://github.com/SnappyDataInc/snappydata

What are the steps to support this derby-like database? Will using the base Jdbc driver work?

Here is the jdbc driver. https://github.com/SnappyDataInc/snappydata/releases/download/v0.5/snappydata-store-client-1.5.0.jar

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37282252-support-snappydata?utm_campaign=plugin&utm_content=tracker%2F136963&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136963&utm_medium=issues&utm_source=github).
kares commented 8 years ago

it might, but if its not too different from derby adapter: derby might be a better choice to start with ...

fire commented 8 years ago

I see. I'll try it.

fire commented 8 years ago

Is there documentation on how to add new tests? I'm stuck at having the test appear at jruby -S rake --tasks.

fire commented 8 years ago

I got the tests running, but I'm not sure where to start debugging these sort of errors:

Error: test: rake db:test:purge(SnappydataRakeTest): ActiveRecord::JDBCError: java.sql.SQLSyntaxErrorException: SQLSTATE=42X94,SEVERITY=-1: (Server=snappydata.192.168.55.4.nip.io[1528],Thread[DRDAConnThread_175,5,gemfirexd.daemons]) TYPE 'PRIMARY_KEY' does not exist. arjdbc/jdbc/RubyJdbcConnection.java:789:in `execute'

The syntax for creating tables in SnappyData is different.