2017 © Pedro Peláez
 

library sqlfileloader

Manipulate SQL files.

image

pedrosoares/sqlfileloader

Manipulate SQL files.

  • Wednesday, November 23, 2016
  • by pedrosoares
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SqlFileLoader

Read the SQL file, remove all comments, and separate each command for manipulation., (*1)

Instation

Put in your composer file the command bellow., (*2)

"pedrosoares/sqlfileloader": "1.0.*"

The field "require" shoud be like:, (*3)

"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*",
    "pedrosoares/sqlfileloader": "1.0.*"
}

How use

To load a file and get all sql commands, you can do in this way:, (*4)

$c = new SqlFileLoader("PATH to the sql file");
foreach($c->getStatements() as $sqlCommand){
    DB::statement($sqlCommand);
}

The Versions

23/11 2016

dev-master

9999999-dev

Manipulate SQL files.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

23/11 2016

1.0.2

1.0.2.0

Manipulate SQL files.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

23/11 2016

1.0.1

1.0.1.0

Manipulate SQL files.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

23/11 2016

1.0.0

1.0.0.0

Manipulate SQL files.

  Sources   Download

MIT

The Requires

  • php >=5.5.9