Class: ImportEverything::SqliteParser

Inherits:
Parser::ImpParsers show all
Defined in:
lib/import_everything/parsers/sqlite_parser.rb

Defined Under Namespace

Classes: TableParser

Instance Method Summary collapse

Methods inherited from Parser::ImpParsers

#line_parsers, #parsers

Methods inherited from Parser

#value_hashes

Instance Method Details

#get_raw_tables(db) ⇒ Object



13
14
15
16
17
18
# File 'lib/import_everything/parsers/sqlite_parser.rb', line 13

def get_raw_tables(db)
  sql = "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;"
  res = db.execute(sql).flatten
  mylog "sqlite", :res => res, :sql => sql
  res
end

#required_fieldsObject



26
27
28
# File 'lib/import_everything/parsers/sqlite_parser.rb', line 26

def required_fields
  []
end