2017 © Pedro Peláez
 

package jl-importer

Import JSON Line into MySQL database

image

buchin/jl-importer

Import JSON Line into MySQL database

  • Wednesday, November 23, 2016
  • by buchin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • Julia
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Jl Importer

Import existing JSON Lines into MySQL database, (*1)

Installation

composer require buchin/jl-importer, (*2)

Usage

<?php
use Buchin\Jl\Importer;

// Initialize importer
$importer = new Importer;

// define parameters
$source = '/Path/to/jlfile.jl';
$dsn = 'mysql:unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock;dbname=test';
$user = 'mysql_user';
$password = 'mysql_password';

// start importing
$importer->import($source, $dsn, $user, $password);

Test

./vendor/bin/kahlan --reporter=verbose

The Versions

23/11 2016

dev-master

9999999-dev

Import JSON Line into MySQL database

  Sources   Download

Halal

The Requires

 

The Development Requires

by Mochammad Masbuchin