load_data_infile2 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/load_data_infile2/client.rb +1 -1
- data/lib/load_data_infile2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba0f292c77592b2d745b4db05fbbbd8245b17044
|
4
|
+
data.tar.gz: 56e2f3d2bbc9ef359af4025dbd0a07b195e927a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd75af4d2246b6d6b116808970e4bad0cfaa374c4a2a5f2d31b50ff312f26e3c8a97714295b2202c65c0e1ffa4068779a9e57f116d814a34e29c9f56c4a107f6
|
7
|
+
data.tar.gz: d32e50d8e90dc0a744ba995c2d5933ff7090d9eb2a8d186e42bc100e06e313e3b656064c38c8c29c7248023a918558d9ebca0e12b889f5af76501767d9cdd8c1
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# LoadDataInfile2
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/load_data_infile2.svg)](https://badge.fury.io/rb/load_data_infile2)
|
3
4
|
[![Build Status](https://travis-ci.org/nalabjp/load_data_infile2.svg?branch=master)](https://travis-ci.org/nalabjp/load_data_infile2)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/nalabjp/load_data_infile2/badges/gpa.svg)](https://codeclimate.com/github/nalabjp/load_data_infile2)
|
5
6
|
[![Test Coverage](https://codeclimate.com/github/nalabjp/load_data_infile2/badges/coverage.svg)](https://codeclimate.com/github/nalabjp/load_data_infile2/coverage)
|
6
|
-
[![Dependency Status](https://gemnasium.com/nalabjp/load_data_infile2.svg)](https://gemnasium.com/nalabjp/load_data_infile2)
|
7
|
+
[![Dependency Status](https://gemnasium.com/badges/github.com/nalabjp/load_data_infile2.svg)](https://gemnasium.com/github.com/nalabjp/load_data_infile2)
|
7
8
|
|
8
9
|
Import the data at a high speed to the table from a text file, using the [MySQL `LOAD DATA INFILE` statement](http://dev.mysql.com/doc/refman/5.7/en/load-data.html).
|
9
10
|
|
@@ -26,7 +26,7 @@ module LoadDataInfile2
|
|
26
26
|
private
|
27
27
|
|
28
28
|
def build_sql(file, options = {})
|
29
|
-
table = options
|
29
|
+
table = options[:table] || File.basename(file, '.*')
|
30
30
|
LoadDataInfile2::Sql.new(file, quoted_table_name_for(table), load_data_infile_options.merge(options)).build
|
31
31
|
end
|
32
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: load_data_infile2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nalabjp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mysql2
|