2017 © Pedro Peláez
 

library mysql-to-sqlite

image

tod/mysql-to-sqlite

  • Wednesday, April 12, 2017
  • by Denis4yk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Laravel mysql-to-sqlite

This is a Laravel wrapper for esperlu's mysql2sqlite.sh which converts a mysqldump to an Sqlite 3 compatible file., (*1)

Latest Stable Version Total Downloads Build Status, (*2)

Usage

You can run the default configuration, (*3)

php artisan db:mysql-to-sqlite

Running a single, default conversion configuration:, (*4)

php artisan db:mysql-to-sqlite customerServiceDBForCI

Configuration

  • Publish the config...

For Laravel, (*5)

Publish the config..., (*6)

php artisan vendor:publish --provider="MysqlToSqlite\ServiceProvider"

Add the following to app/Providers/AppServiceProvider.php, (*7)

public function register()
{
    // Class may not be there if it was loaded as a dev dependency
    if (class_exists('MysqlToSqlite\ServiceProvider')) {
        $this->app->register(MysqlToSqlite\ServiceProvider::class),
    }
}

For Lumen, (*8)

Publish the config..., (*9)

cp vendor/realpagelouisville/mysql-to-sqlite/config/mysql-to-sqlite.php config/mysql-to-sqlite.php

Add the following to app/bootstrap/app.php, (*10)

php // Class may not be there if it was loaded as a dev dependency if(class_exists('MysqlToSqlite\ServiceProvider')) { $app->register(MysqlToSqlite\ServiceProvider::class); }, (*11)

Installation

You're probably only using this for development, so we'll use require-dev:, (*12)

composer require --dev realpagelouisville/mysql-to-sqlite:~1.*

The Versions