Class: ImportEverything::SqliteParser
- Defined in:
- lib/import_everything/parsers/sqlite_parser.rb
Defined Under Namespace
Classes: TableParser
Instance Method Summary collapse
-
#get_raw_tables(db) ⇒ Object
get_raw_tables(res) res.
- #required_fields ⇒ Object
Methods inherited from Parser
#each_row, #each_table_and_rows, #line_parsers, #table_rows_hash
Instance Method Details
#get_raw_tables(db) ⇒ Object
get_raw_tables(res) res
17 18 19 20 21 22 |
# File 'lib/import_everything/parsers/sqlite_parser.rb', line 17 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_fields ⇒ Object
30 31 32 |
# File 'lib/import_everything/parsers/sqlite_parser.rb', line 30 def required_fields [] end |