Module: CsvImportAnalyzer
- Extended by:
- CsvImportAnalyzer
- Included in:
- CsvImportAnalyzer
- Defined in:
- lib/csv-import-analyzer/analyzer/file_type_assertion.rb,
lib/csv-import-analyzer.rb,
lib/csv-import-analyzer/version.rb,
lib/csv-import-analyzer/csv_sanitizer.rb,
lib/csv-import-analyzer/sql_query_builder.rb,
lib/csv-import-analyzer/csv_datatype_analysis.rb,
lib/csv-import-analyzer/export/metadata_analysis.rb,
lib/csv-import-analyzer/helpers/common_functions.rb,
lib/csv-import-analyzer/analyzer/csv_check_bounds.rb,
lib/csv-import-analyzer/query_builder/query_helper.rb,
lib/csv-import-analyzer/helpers/datatype_validation.rb,
lib/csv-import-analyzer/analyzer/delimiter_identifier.rb,
lib/csv-import-analyzer/query_builder/pg_query_helper.rb,
lib/csv-import-analyzer/query_builder/mysql_query_helper.rb
Overview
file_type_assertion.rb
Defined Under Namespace
Modules: Analyzer, DatatypeValidator, DelimiterIdentifier, Helper, MysqlQueryHelper, PgQueryHelper, QueryHelper, Version Classes: CsvCheckBounds, CsvDatatypeAnalysis, CsvSanitizer, MetadataAnalysis, SqlQueryBuilder
Instance Method Summary collapse
-
#process(filename, options = {}) ⇒ Object
main public interface to the library makes sure that the file exists and passes the file and any additional options given to CsvSanitizer returns FileNotFound if given file is invalid.
Instance Method Details
#process(filename, options = {}) ⇒ Object
main public interface to the library makes sure that the file exists and passes the file and any additional options given to CsvSanitizer returns FileNotFound if given file is invalid
13 14 15 16 17 18 19 |
# File 'lib/csv-import-analyzer.rb', line 13 def process(filename, = {}) if File::exist?(filename) CsvImportAnalyzer::CsvSanitizer.new().process(File.absolute_path(filename), ) else FileNotFound.new end end |