How do you access SQLite3 via JDBC without using active record?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
The jdbc driver file
sqlite-3.5.8.jar
gets copied into the gem directory. It needs to be copied into the jruby/lib directory. Application also needs restart.The driver file can be downloaded directly from here
Here's an example that works with JRuby 1.6.6 (in Ruby 1.8 compat mode) with jdbc-sqlite3 3.7.2.
Output:
Install the jdbc-sqlite3 gem
Then, in your jruby script: