datapipe2 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -11
  3. data/lib/fns/mssql_to_pgsql.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34805539a0453fa87d4388b6f0e555e8c269b383
4
- data.tar.gz: 1b6f0108e659fcdc3b5e3aa4db6c02f3b8123c10
3
+ metadata.gz: 1484071c5a50332e6707526b1a45fe7546716c90
4
+ data.tar.gz: ed9430b7e754959abe46454672239440fa955b2e
5
5
  SHA512:
6
- metadata.gz: 1e186210ab40da293c3ff14b692a84120cb61afcc9fddee17d6299369e902760885eddb767c42f211f69d30d16ebebdb4b2f235b4cfe401124562531ff1ddcb9
7
- data.tar.gz: b8c22a890d4c0d8a18c404b94cfb43a79fbaca29aac238bf4ac07dddb4d6add93bc42c09f7665a7e39d1ee387261015d944e01855e6c8c6aa62ea46ff4806ed0
6
+ metadata.gz: 23162306076c01311fcc4b743c48a4fd15776fc416d7f744b377897dcedf11192b4d2251fbf53e7ba598c1aac0d2b98db96b64003db4605a091b25841c79c4f4
7
+ data.tar.gz: 6cc315349fab6fe9cc4304091e4816498a83892fbedbad8abc01a78a1031d64e563048f5b10f58602f12283dd9dcfd7b07fa85ff7b91531306536e99a1c8a2cd
data/README.md CHANGED
@@ -3,23 +3,22 @@ zero to one for moving data
3
3
 
4
4
  ## Why
5
5
  Do you need to get data from one database to another? Move data from a CSV
6
- file into a database. Then, move this data on a semi-regular basis.
6
+ file into a database.
7
7
 
8
- And do all this before you even know whether this is even going to be useful
9
- long term?
8
+ Then, move this data on a semi-regular basis.
9
+
10
+ And all this before you know whether its useful?
10
11
 
11
12
  ## How
12
13
  You can call this on a single line,
13
- ```bash
14
- csv_to_db './data/test.csv', 'test_tbl'
15
- ```
14
+
15
+ csv_to_db './data/test.csv', 'test_tbl'
16
16
 
17
17
  Or, you can put it in a DSL and have it run on a scheduled basis.
18
- ```bash
19
- DB=pgsql://testuser:testpass@localhost/datapipe2 \
20
- Bcs_CRON="* * * * *" \
21
- datapipe2
22
- ```
18
+
19
+ DB=pgsql://testuser:testpass@localhost/datapipe2 \
20
+ Bcs_CRON="* * * * *" \
21
+ datapipe2
23
22
 
24
23
  ## What
25
24
  Check the lib and examples directories for available functions.
@@ -8,7 +8,7 @@ def mssql_to_pgsql(select_sql, table_name, columns)
8
8
  COPY #{table_name} (#{columns})
9
9
  FROM STDIN
10
10
  WITH DELIMITER AS '|'
11
- CSV;"
11
+ CSV;
12
12
  }
13
13
  d.connection.exec(copy_cmd)
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datapipe2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Irvine