Project

pinport

0.0
No commit activity in last 3 years
No release in over 3 years
Pinport is a command-line tool for importing a large list of PINs (Personal Identification Numbers) into a MySQL Database
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0.4
~> 0.8.6.1

Runtime

~> 0.3.11
~> 3.46.0
~> 0.18.1
 Project Readme

pinport

Pinport is a PIN importing command line utility written in Ruby.

Currently supports importing to a MySQL database.

Installation

gem install pinport

Configuration

A config.yml file specifying details for your MySQL database is required. Pinport uses this file to determine how connect to your database and which table/column to insert imported PINs into. It is recommended that you use pinport generate to generate this file so that it is appropriately formatted.

Generating a config.yml file

Use pinport generate to generate the required config.yml file in the current directory.

Pinport uses the mysql2 gem to establish the connection to the database. For available database connection options, refer to: https://github.com/brianmario/mysql2#connection-options.

Usage

Importing a single .txt file:

pinport import FILE

FILE should contain one line per item to be imported.

Importing a folder of .txt files:

pinport import FOLDER

Development

Clone this repository using git clone.

Navigate to the directory of cloned repository and run rake to compile and install the gem from source.

To do the tasks separately:

  • rake build to compile the gem
  • rake install to install the gem.