include/drivers/sqlite3/libknjdb_java_sqlite3.rb in baza-0.0.12 vs include/drivers/sqlite3/libknjdb_java_sqlite3.rb in baza-0.0.13
- old
+ new
@@ -9,21 +9,21 @@
def escape_val
return "'"
end
- def initialize(knjdb_ob)
- @knjdb = knjdb_ob
+ def initialize(baza_db_obj)
+ @baza_db = baza_db_obj
- if @knjdb.opts[:sqlite_driver]
- require @knjdb.opts[:sqlite_driver]
+ if @baza_db.opts[:sqlite_driver]
+ require @baza_db.opts[:sqlite_driver]
else
require File.dirname(__FILE__) + "/sqlitejdbc-v056.jar"
end
require "java"
import "org.sqlite.JDBC"
- @conn = java.sql.DriverManager::getConnection("jdbc:sqlite:" + @knjdb.opts[:path])
+ @conn = java.sql.DriverManager::getConnection("jdbc:sqlite:" + @baza_db.opts[:path])
@stat = @conn.createStatement
end
def query(string)
begin
\ No newline at end of file