aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3dv/db_select.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-01-10 22:50:12 -0500
committerRalph Amissah <ralph@amissah.com>2012-01-10 22:53:33 -0500
commitdf67ee1079d074dc2af54aa87187c6538e73d5d7 (patch)
tree8951ce72708a2db81fe16e55faafc41b9b879b2c /lib/sisu/v3dv/db_select.rb
parentv3dv: class names, remove "SiSU_" (reserve for module names for consistency) (diff)
v3dv: class names, use more CamelCase
Diffstat (limited to 'lib/sisu/v3dv/db_select.rb')
-rw-r--r--lib/sisu/v3dv/db_select.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/v3dv/db_select.rb b/lib/sisu/v3dv/db_select.rb
index 97fcb990..478a25fa 100644
--- a/lib/sisu/v3dv/db_select.rb
+++ b/lib/sisu/v3dv/db_select.rb
@@ -61,7 +61,7 @@ module SiSU_DbSelect
class Case
def initialize(opt,conn='',sql_type='pg')
@opt,@conn,@sql_type=opt,conn,sql_type
- @db=SiSU_Env::Info_db.new
+ @db=SiSU_Env::InfoDb.new
@file=sql_maintenance_file
@sdb=SiSU_DbDBI::Create.new(@opt,@conn,@file,@sql_type) # db_dbi.rb
@sdb_index=SiSU_DbDBI::Index.new(@opt,@conn,@file,@sql_type) # db_dbi.rb
@@ -90,9 +90,9 @@ module SiSU_DbSelect
def sql_maintenance_file
file=if @opt.inspect =~/M/
x=if @opt.fns and not @opt.fns.empty?
- @env=SiSU_Env::Info_env.new(@opt.fns) if @opt.fns
+ @env=SiSU_Env::InfoEnv.new(@opt.fns) if @opt.fns
puts "\n#{@env.processing_path.sqlite}/#{@opt.fns}.sql" if @sql_type =~/sqlite/ and @opt.cmd =~/M/
- @db=SiSU_Env::Info_db.new
+ @db=SiSU_Env::InfoDb.new
@job="sqlite3 #{@db.sqlite.db} < #{@env.processing_path.sqlite}/#{@opt.fns}.sql"
File.new("#{@env.processing_path.sqlite}/#{@opt.fns}.sql",'w+')
elsif @opt.fns and @opt.fns.inspect =~/create/; nil #sort variations later
@@ -121,7 +121,7 @@ module SiSU_DbSelect
@sdb.create_table.endnotes_plus
@sdb.create_table.urls
@sdb_index.create_indexes
- rescue; SiSU_Errors::Info_error.new($!,$@,'-D').error; @sdb.output_dir?
+ rescue; SiSU_Errors::InfoError.new($!,$@,'-D').error; @sdb.output_dir?
end
when /^--createtables?$/
@sdb.output_dir?